Hello! I've got a strange problem.
My app works fine on the emulator and on Nokia 3650, but it causes a "0 java.lang.NullPointerException" while exiting on the 7610 phone.
Please give me a hint.
Hello! I've got a strange problem.
My app works fine on the emulator and on Nokia 3650, but it causes a "0 java.lang.NullPointerException" while exiting on the 7610 phone.
Please give me a hint.
Does your destroyApp() method contain the following line:
notifyDestroyed();
Because it should.
I had similar problems, and i introduced that line and things worked again. I think the problem is that it gets destroyed, but then the phone tries to reference it again, since there is nothing to stop it. notifyDestroyed() lets the OS know that the app has been destroyed and so can no longer be referenced.
Åge Kruger
nope
but I call notifyDestroyed() then I want to close my app e.g. then user chooses "Exit" or something. Maybe I should close my app another way? Or just include nutifyDestroyed() into the destroyApp()?
When i close up my applications, i use some "standard" methods:
public void destroyApp(boolean destroy){
}
public void exitRequested(){
destroyApp(false);
notifyDestroyed();
}
This seems to work well, hopefully it will work for you too.
Åge Kruger
Thanx!
I can't test it now but I'll post the results!