To check if a MIDlet is minimized, the Displayable.isShown() method can be used. It is of course preferable to check for a minimized MIDlet this way:
private boolean isOnBackGround(){
boolean isOnBackGround =(BubbleTalk.getDisplay().getCurrent() == null ||
!BubbleTalk.getDisplay().getCurrent().isShown());
return isOnBackGround;
}
For more information regarding minimizing MIDlets in Sony Ericsson, click here.
Showing posts with label Sony Ericsson. Show all posts
Showing posts with label Sony Ericsson. Show all posts
Thursday, 2 April 2009
Wednesday, 1 April 2009
On Device Debugging in Sony Ericsson
Sony Ericsson provides a very useful tool for us developers which is the On-Device Debugging. What makes it better is that they even have a wiki on this to document the steps on how to do an On-Device Debugging. Below is a useful video to help you out. It is however applicable for Java Platform 8 and above(probably).
For those below Java Platform 8, the steps are very similar to the one shown below. Only difference is that you need to find out the port number and select it in the Connection Proxy to connect the device to the PC.
Please take note that to enable Java Developer Mode(JP-8 Phones)
Click Right * Left Left * Left *
For phones of lower than JP-8, there is no need to enable the Java Developer Mode.
For those below Java Platform 8, the steps are very similar to the one shown below. Only difference is that you need to find out the port number and select it in the Connection Proxy to connect the device to the PC.
Please take note that to enable Java Developer Mode(JP-8 Phones)
Click Right * Left Left * Left *
For phones of lower than JP-8, there is no need to enable the Java Developer Mode.
Monday, 24 November 2008
Sony Ericsson does not allow + sign in textbox!
I am currently developing a J2ME application for Sony Ericsson phone.
In the application, I have a texbox which only allow users to input numbers and certain signs as how you would enter your normal phone numbers.
This is the code that I use:
TextBox my_box = new TextBox("Enter here", "", 50, TextField.PHONENUMBER);
However, I faced a problem in Sony Ericsson as I could not enter a plus sign(+).
I checked tried in Nokia S40 and it works!
If you realised in Sony Ericsson, the key pad to input the + sign is the same as with the number 0.
So when you tried to input the + sign, it is always the number 0 that appears. :(
I then realised that there's no bug actually!
To insert a + sign in Sony Ericsson, one should press on the 0 longer. :)
In the application, I have a texbox which only allow users to input numbers and certain signs as how you would enter your normal phone numbers.
This is the code that I use:
TextBox my_box = new TextBox("Enter here", "", 50, TextField.PHONENUMBER);
However, I faced a problem in Sony Ericsson as I could not enter a plus sign(+).
I checked tried in Nokia S40 and it works!
If you realised in Sony Ericsson, the key pad to input the + sign is the same as with the number 0.
So when you tried to input the + sign, it is always the number 0 that appears. :(
I then realised that there's no bug actually!
To insert a + sign in Sony Ericsson, one should press on the 0 longer. :)
Subscribe to:
Posts (Atom)