On Feb 6, 7:38 am, johnny <johnny...@gmail.com> wrote:
> I get an apk file from somewhere. I tried to install it the emulator
> successfully. (The emulator is built from the latest code in AOSP
> which should be cupcake or later). But I can't launch the application
> from the GUI. It complains "The application xxx has stopped
> unexpectedly." After checking the logcat, I find the message "access
> to class not allowed". It seems that that process is not allowed to
> instantiate the Activity class.

This usually happens when the class that the app framework is trying
to instantiate isn't declared "public".  In some older versions of
Dalvik this was mistakenly allowed, so if the APK is old enough it
might need to be rebuilt with a corrected class declaration.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to