logo       

Should I do initialing work in midlet constructor?: msg#00204

java.sun.kvm

Subject: Should I do initialing work in midlet constructor?

From Learning wireless Java by Qusay H.Mabmoud, I learned that I should never call Display.getDisplay() in midlet constructors, because that may cause errors by application manager.

But the startApp() method may be called many times, and that would consume much time if initialing work is done in the startApp() method.

So, how should I do?

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise