Skip to main content

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

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2011-05-18

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.
Joined: 2003-11-07

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.