Android Program Crashing (new To Platform)
So it is my first real Android program (!hello world), but i do have java experience.The program compiles fine, but on running it crashes as soon as it opens (tried debugging, but
Solution 1:
Use adb logcat
, DDMS, or the DDMS perspective in Eclipse to find the Java stack trace that caused your crash.
Solution 2:
You may forget to register your activity name in the AndroidManifest.xml. It is a very common mistake for starters. AndroidManifest.xml should be like this:
<activityandroid:name=".TipCalculator"android:label="@string/app_name"><intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.LAUNCHER" /></intent-filter></activity>
Post a Comment for "Android Program Crashing (new To Platform)"