Code example for DexClassLoader

Methods: loadClass

0
    private void log(String str) {
        Log.d(TAG, str);
    } 
 
    public Class loadClass(String className) throws ClassNotFoundException {
        return classLoader.loadClass(className);
    } 
 
    public IDateParser loadDateParser() throws ClassNotFoundException, InstantiationException, IllegalAccessException { 
        return (IDateParser) loadClass(DATE_PARSER_CLASSNAME).newInstance();
    } 
 
    // we use these lock files to mark these folders as written successfully 
 
    private File toLockFile(String filename) {
        return new File(appContext.getDir("locks", Context.MODE_PRIVATE), "lock_" + filename);
    } 
 
    private void addCreatedLock(String filename) {
        log("locking file " + filename);