Hi,
     I was woundering if someone could help me on a technical issue
concerning the PathClassLoader in Android SDK 1.0.
The problem I'm and other people, see blog,
http://groups.google.com/group/android-developers/browse_thread/thread/ae71de8061c7eabf/c601569b1636f9dc?lnk=gst&q=PathclassLoader#c601569b1636f9dc,
have experienced arrises when attempting to dynamically load classes.
Using the example in the
blog:

PathClassLoader loader = new PathClassLoader(
"/data/data/org.beo/beo.mylib/myLib.apk",
ClassLoader.getSystemClassLoader());
Class calledClass = null;
calledClass = loader.loadClass("beo.mylib.beoware");

produces the following error:
ERROR/dalvikvm(312): Can't open dex cache
'/data/dalvik-cache/[EMAIL PROTECTED]@classes.dex': No such file or
directory
09-26 00:03:34.928: INFO/dalvikvm(312): Unable to open or create cache
for
/data/data/....................apk'

This is rectified by shelling into the emulator using the adb utility
and changing the permissions on
the directory /data/dalvik-cache using chmod 777 .

The main concern I have is, what will be the permissions /data/dalvik-
cache on on a target device, such as the new HTC G1 phone ?
Users of any application using the PathClassLoader will propably not
be able to issues chmod 777 commands (can't expect them
to either). Consequently, this would render applications relying on
PathClassLoader  inoperable. If anyone can help me with this issue,
it would be very greatly appreciated.

Regards,
             MoggoDude

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

Reply via email to