Search in sources :

Example 1 with ThingsLoader

use of com.commonsware.android.dyncode.api.ThingsLoader in project cw-omnibus by commonsguy.

the class ThingsLoaderThunk method loadThunk.

private void loadThunk() throws ClassNotFoundException, IllegalAccessException, InstantiationException {
    DexClassLoader dcl = new DexClassLoader(apkPath.getAbsolutePath(), cachePath.getAbsolutePath(), null, getClass().getClassLoader());
    Class<ThingsLoader> clazz = (Class<ThingsLoader>) dcl.loadClass(classname);
    extImpl = clazz.newInstance();
}
Also used : ThingsLoader(com.commonsware.android.dyncode.api.ThingsLoader) DexClassLoader(dalvik.system.DexClassLoader)

Aggregations

ThingsLoader (com.commonsware.android.dyncode.api.ThingsLoader)1 DexClassLoader (dalvik.system.DexClassLoader)1