ANDROID: android.content.ActivityNotFoundException: Unable to find explicit activity class

Problem:  "android.content.ActivityNotFoundException: Unable to find explicit activity class" in LogCat when click button to open new Activity.

Environment: eclipse-adt-bundle (eclipse android development IDE)

Solving: all Activities should be declared in   AndroidManifest.xml file. To fix problem check manifest and add all your activities.

Example:

This is simple project with two activities :
1. MainActivity - it contains button to open second ativity
2. MyListActivity - second activity

ANDROID: android.content.ActivityNotFoundException: Unable to find explicit activity class



No comments:

Post a Comment