Reputation: 1
I am trying to get the error code of an application which crashes abnormally. I am able to get error cause. For example:
- "01-31 11:45:08.459: E/AndroidRuntime(680): Caused by: java.lang.NullPointerException "
- "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
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
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
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