The application has stopped unexpectedly: How to Debug?
Posted
by
Android Eve
on Stack Overflow
See other posts from Stack Overflow
or by Android Eve
Published on 2011-02-23T23:03:11Z
Indexed on
2011/02/23
23:25 UTC
Read the original article
Hit count: 213
Please note, unlike many other questions having the subject title "application has stopped unexpectedly", I am not asking for troubleshooting a particular problem.
Rather, I am asking for an outline of the best strategy for an Android/Eclipse/Java rookie to tackle this formidable task of digesting huge amounts of information in order to develop (and debug!) a simple Android application.
In my case, I took the sample skeleton app from the SDK, modified it slightly and what did I get the moment I try to run it?
The application (process.com.example.android.skeletonapp) has stopped unexpectedly. Please try again.
OK, so I know that I have to look LogCat. It's full of timestamped lines staring at me... What do I do now? What do I need to look for?
Is there a way to single-step the program, to find the statement that makes the app crash? (I thought Java programs never crash, but apparently I was mistaken)
How do I place a breakpoint?
Can you recommend an Android debug tutorial online, other than this one?
© Stack Overflow or respective owner