Nirav Bhandari
Nirav Bhandari

Reputation: 4610

J2ME application getting crash

I have created a Java ME application which works perfectly in the emulator. But when I run the application on Nokia 5233 or other devices it crashes without prompting any alert.

I tried to catch all exception to find out when my application getting crashed. But it is also worthless as I'm not getting alert message while crashing. Can any one suggest me what would be the problem? After application crash I restart my application and it crashes at same point for number of times. If I continue trying some time it works perfectly. Don't know what's the problem. It works fine in emulator.

Upvotes: 1

Views: 554

Answers (1)

Kai
Kai

Reputation: 39632

So if you are not able to get any stacktrace you should comment out all the lines from your startApp() method. Then uncomment successively one line after another and run it every time on the device. That way you will find the line on which your application crashes. Especially the usage of services like e.g. the DataStorage should be reviewed.

Another way could be to add verbose logging to your code to see what's the last line which gets executed.

Also have a look at this question: How to get the stacktrace in a mobile device

Upvotes: 2

Related Questions