Skip to main content

Where in the MIDlet life-cycle to create multiple forms ?

1 reply [Last post]
andrianiaina
Offline
Joined: 2011-05-18
Points: 0

Hi all,

I must create two forms in my application. Where should I create the two forms ? I created the first form in the startApp life-cycle method , and when I tried to create also the second form in the startApp method then there is a NullPointerException raised when running the application !

So where should I create the second form ?

Thank you very much indeed

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07
Points: 0

You need to "release" the startApp method immediately.
I don't understand the logic you are trying to accomplish, please follow the code of our sample applications such as LWUIT Demo.