|
Re: Should I do initialing work in midlet constructor?: msg#00206java.sun.kvm
Hi, I call Display.getDisplay() all the time from MIDlet constructors and I have never had a problem. I guess what they are getting at is that the method requires a MIDlet as a parameter and the MIDlet is not yet initalalised. Its a bit like not starting audio unti the canvas is visible. I have never had any problems with these things as I said but I have been focusing on Motorola and Nokia terminals. StartApp() is called every time the MIDlet leaves the paused state as well as the first time the MIDlet starts. The constructor is the safest place to put such start up code. Not all KVM AMS/JAM supportthis behaviour though, so if you find the methods are not getting called HideNotify() and ShowNotify() are always called in the canvas. These are guatenteed to work. Basically you move the StartApp() code to ShowNotify() in these cases. Peter From: Xu Feng <cyachina@xxxxxxx> _________________________________________________________________ Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband =========================================================================== To unsubscribe, send email to listserv@xxxxxxxxxxxx and include in the body of the message "signoff KVM-INTEREST". For general help, send email to listserv@xxxxxxxxxxxx and include in the body of the message "help".
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | WMA 1.1, Sunil Maheshwari |
|---|---|
| Next by Date: | Re: WMA 1.1, Andrea Fasce [nondove] |
| Previous by Thread: | Re: Should I do initialing work in midlet constructor?, Kim Daniel Arthur |
| Next by Thread: | WMA 1.1, Sunil Maheshwari |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |