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.
andrianiaina
Offline
Joined: 2011-05-18
Points: 0

I found the solution : I test before invoking init that the first form is null. I create first the first form then I create the second form.