Skip to content Skip to sidebar Skip to footer

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:

    <activity android:name=".TipCalculator"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

Post a Comment for "Android Program Crashing (new To Platform)"