07-29-2008 07:59 AM
I have a MIDlet application. In this application while navigating in the application , repaint is called in a Thread which loads thumbnail images and repaints the screen in a loop. My Problem is while this process if we press the back key (I have handled the back key to send the application in background , by seting current display null, and caling requestBackground()), the startApp() is get called and pauseapp is called after some time.
I am not sure Why the startApp is invoking, .
Any body any idea .
Waiting for reply
07-29-2008 10:38 AM
07-30-2008 01:27 AM
By back key i mean escape key.Also i put the requestBackground() , to overcome this problem, it was there before using this method.
Is there any scenerio where startApp() may called before pauseApp() while putting application in to background.
Waiting for your reply
07-30-2008 10:08 AM
10-10-2008 04:44 PM
>> MIDlet applications do not support background processing. What you are trying to do is not supported. You can do this with a BlackBerry CLDC application.
Mark, I thought MIDlets *can* still run in the background? I'm using JDE 4.3.0 r1 with a 8130 handset, and I can see that when I hit the "red hang up button", my background threads are still running. I'm just printing out a statement to debug every 5 seconds forever, and it seems to work. Am I just getting lucky?
I read some posts on this board which suggested doing this in pauseApp():
private Displayable displayable = null;
public void pauseApp()
Display display = Display.getDisplay(this);
displayable = display.getCurrent();
public void startApp()
// If we're being resumed...
yeah so my background thread runs forever even though I'm not the foreground app anymore. Can you give me any info on this?