Ok guys this doesn\'t make sense to me at all and I don\'t understand why I am getting this error in my app. I have registered the activity class in the android manifrest xm
See the crash log carefully:
loader dalvik.system.PathClassLoader[/mnt/asec/com.mobile.batteryhelper-1/pkg.apk
Here mnt
means external SD card.
Normally, when
android:installLocation="auto"
is set in AndroidManifest.xml, if the device won't have enough phone memory, then the app will be stored on the SD card. Once you remove the SD card from the device, the app can't find the APK location, then the app crashes.
Steps to produce the crash:
Issue able to replicate in HTC sensation 2.3.4 version.
If you try with a Samsung device, it won't crash, but it won't show the app if you remove the SD Card. This behaviour is for a few devices only.