Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActivityNotFoundException for an activity declared in my AndroidManifest.xml

Tags:

android

I have a launched android application that works fine most of the time. However 1 in about 1000+ runs I get an android.content.ActivityNotFoundException: Unable to find explicit activity class exception. The activity is declared in my manifest and I've never seen it crash myself. It is declared like this...

<activity android:name="com.myCompany.myPackage.MyDialog"
   android:theme="@android:style/Theme.Dialog">
</activity> 

The crash reports show it failing on all OS's from 1.5 to 2.1.

Any help would be greatly appreciated.

--Gary

like image 758
Gary Avatar asked Mar 21 '26 09:03

Gary


1 Answers

an android.content.ActivityNotFoundException

be sure your <activity is inside your <application node =)

like image 162
Jorgesys Avatar answered Mar 22 '26 23:03

Jorgesys



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!