Code example for PathClassLoader

        if (parent == null)
            throw new IllegalStateException();
        //my_app, my_libraryをセパレータで区切ってdexPathを構成する 
        String dexPath = libraryCodePath + File.pathSeparator + context.getPackageCodePath();
        PathClassLoader customLoader = new PathClassLoader(dexPath,
        return customLoader;
     * カスタムしたアプリケーションでActivityをロードする. 
    public Activity newActivity(ClassLoader cl,
                                String className,
                                Intent intent) throws InstantiationException, IllegalAccessException, ClassNotFoundException {
        return super.newActivity(getCustomLoader(getTargetContext()), className, intent);
Connect your IDE to all the code out there  Get Codota for Java