Thanks John for the detailed steps. We really appreciate it.
I think, i don't need to have a background application as i just need to show an reminder alert. Does background app mandatory?
I can use my main applicaiton itself for that purpose by keep running timertask in the background. which also works fine, i just tested. I created a TimerTask and it keeps running when i'm in inside of my app and even when i'm in outside of my app. I want to show a Reminder kind of alert with a small desc message when the particular timer is running in the interval. May i please know what kind of alert i can show from my Uiapplicaiton now when TimerTask is running? I tried to provide Dialog.alert, but simulator crashes if i use it.
{
try{
timer = new Timer();
timer.scheduleAtFixedRate(new ClickTask(), 0, 50000);
}
catch (IllegalStateException e) {
e.printStackTrace();
}
}
private class ClickTask extends TimerTask {
public void run() {
System.out.println("Timer Task running..");
//Screen screen = new Dialog(Dialog.D_OK, "Look out!!!", //Dialog.OK,Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION),Manager.VERTICAL_SCROLL);
//Dialog.ask("Changes made!", new String[]{"Save", "Discard",
//"Cancel"}, 0);
Dialog.alert("My Reminder");
}
}
public boolean onClose()
{
UiApplication.getUiApplication().requestBackground();
return true;
}
Suggstions please !
Thanks.