0

I have an application that is suspended, and even when it is suspended a thread is working to get some data. What I want to do is, while a user is using the phone for other thing, to display an alert because new data was found, and when I click a button then comes back to my application that was suspended and shows the data.

I know I can make an alert on this way

alert = new Alert("alert");
alert.addCommand(new Command("Ok", Command.OK, 0));
alert.addCommand(new Command("Cancel", Command.CANCEL, 0););
alert.setCommandListener(this);
alert.setTimeout(Alert.FOREVER);

but I don't know how to show it when my application is running background?

4

0 回答 0