ciqken
ciqken

Reputation: 1

How to get Android error code of an application which crashes abnormally

I am trying to get the error code of an application which crashes abnormally. I am able to get error cause. For example:

  1. "01-31 11:45:08.459: E/AndroidRuntime(680): Caused by: java.lang.NullPointerException "
  2. "Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.foo/.bar}; have you declared this activity in your AndroidManifest.xml? ".

But I am not able to get the error code from logs. Is there any way to get it?

Upvotes: 0

Views: 250

Answers (3)

Ravi Kumar Karunanithi
Ravi Kumar Karunanithi

Reputation: 2218

You are not declared your activityfile name in manifest file. You can declare this code within the application tag.

   <activity android:name=".activityfilename">
   </activity>

Upvotes: 0

Vikram Bodicherla
Vikram Bodicherla

Reputation: 7123

have you declared this activity in your AndroidManifest.xml?

The poor guys can't make it easier than this to identify the error!

Upvotes: 2

jeet
jeet

Reputation: 29199

This exception is due to you have not declared your activity in manifest file, add your activity to manifest file, by open manifest file-> select application tab-> select add-> browse your activity and save manifest file.

Upvotes: 0

Related Questions