Thursday, October 29, 2009

[android-developers] Re: Does DexClassLoader works correctly?

On Oct 29, 1:02 am, mongd <mongdl...@gmail.com> wrote:
> DexClassLoader dLoader = new DexClassLoader("/data/app/
> com.testpackage.test2.apk", "/data/dalvik-cache", null,

Your application doesn't have write permission on /data/dalvik-cache.
It can't create a file there.

You should either use your app's private data area (which has the
advantage of getting cleaned up automatically when your app is
uninstalled), or request the WRITE_EXTERNAL_STORAGE permission and
use /sdcard.

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment