Tuesday, June 14, 2011

[android-developers] Loading a Class from an APK file with dependency on other Jars

Hi,
I am trying to load a class from apk file and create an instance
of that class, but the problem is when the class is depending on other
JARS then the loading of class is failing.

I was loading the class using DexClassLoader as show below.
DexClassLoader dxLoader = new DexClassLoader(dataSourcePath, "/sdcard/
tmp", null, getClass().getClassLoader());
handler = dxLoader.loadClass(className);

Is there any other way to Load a class from APK which has dependency
on Other Jars.

Regards,
Mahender

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate