I guess that you are looking for the following functionality,
I guess, with the single midlet you will not be able to do this with the current midlet that currently you are working with.Since once you exit the application(Means you kill the application)..then there is no scope for existing the application.
3. Even we exit the application in mobile , the alert should display in every 10 seconds.
Well,For this you can proceed like this-
Take two midlets,and then
1.Set the push registry at the time of the exiting the application..
2.This will invoke the another second midlet,set above in the push registry..
3.in the second midlet display the alert..
This is the algorithm,
For displaying the alert after 10 seconds,your 2nd midelt will be like this,
public void commandAction(Command cmd, Displayable d)
if (cmd == exitCmd)
Hope that this will help you.
* Created on April 14, 2009, 3:19 PM
* @author rajiv
public class Midlet2 extends MIDlet
Alert alert = null;
public void startApp()
alert = new Alert("Midlet-2 after invoked","Hello",null,AlertType.CONFIRMATION);
public void pauseApp()
public void destroyApp(boolean unconditional)