You Are Here:

Community: Developer Discussion Boards

#1 Old Action after an Alert - 2004-03-25, 11:42

Join Date: Feb 2004
Posts: 14
Location: Paris, France
bboissard
Offline
Registered User
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)
from the Display class.

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
Reply With Quote

#2 Old 2004-03-25, 12:28

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
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
Reply With Quote

#3 Old 2004-03-25, 14:46

Join Date: Feb 2004
Posts: 14
Location: Paris, France
bboissard
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia