Android ActivityNotFoundException


Example

This is a very common Exception. It causes your application to stop during the start or execution of your app. In the LogCat you see the message:

android.content.ActivityNotFoundException : Unable to find explicit activity class; 
have you declared this activity in your AndroidManifest.xml?

In this case, check if you have declared your activity in the AndroidManifest.xml file.

The simplest way to declare your Activity in AndroidManifest.xml is:

<activity  android:name="com.yourdomain.YourStoppedActivity" />