I am creating a java ME app that uses bluetooth.
No matter how I try to change the current Displayable it does not change.
My app sets a textbox called "devices" as the current displayable in startup and I change current to a list called "devicelist" in a method in another class.
But when I try to change the current back to textbox (devices ) it doesn't change.
I tried using the display object in midlet class and also using gestDisplay in other class. But the List object (deviceList) remains the current Displayable.
update Per my testing, there seems to be some bug. The TextBox (devices) is the current Displayable but when I check isShown it comes as false. Instead the other Displayable: List (deviceList) when tested with isShown comes as true.
Although the api specifications suggest that setCurrent method's effect is not immediate, the current Displayable is changing but it is not shown on the screen.And this happens both in the real device and the emulator.
System.out.printlnto trace midlet execution in the console. There are also various logging libraries for Java ME worth considering for testing with real devices, but for emulator system.out.println is just fine - gnat