| Reply | « Previous Thread | Next Thread » |
|
hi,
I would like to have an action done just after or at the end of an Alert message, something like showing an error and then quitting the MIDlet. It seems we can only show an other Screen after an Alert using the method: Code:
void setCurrent(Alert alert, Displayable nextDisplayable) I managed to do it using a Thread that would sleep the time needed and then quit the MIDlet. I was wondering if there would be another way to do it (without Threads)? maybe something trickyer? Thanks Bruno |
|
You could use a canvas as the next displayable, and use the Canvas.showNotify() method to find out when the canvas receives focus.
But using a form or canvas instead of the alert and using a timer to quit seems more appropiate. shmoove |
|
Thanks a lot shmoove,
I was not aware of the existance of the timer ;) This realy seem to be the simplest & nicest solution. Bruno |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|