private static void testDexClassLoader(){
  ClassLoader dexClassLoader=getDexClassLoader();
  Class anotherClass;
  try {
    anotherClass=dexClassLoader.loadClass("Another");
  }
 catch (  ClassNotFoundException cnfe) {
    throw new RuntimeException("Another?");
  }
  Object another;
  try {
    another=anotherClass.newInstance();
  }
 catch (  IllegalAccessException ie) {
    throw new RuntimeException("new another",ie);
  }
catch (  InstantiationException ie) {
    throw new RuntimeException("new another",ie);
  }
  dexClassLoader.getResource("nonexistent");
}

private static void testDexClassLoader ( ) { ClassLoader dexClassLoader = getDexClassLoader ( ) ; Class anotherClass ; try { anotherClass = dexClassLoader . loadClass ( "Another" ) ; } catch ( ClassNotFoundException cnfe ) { throw new RuntimeException ( "Another?" ) ; } Object another ; try { another = anotherClass . newInstance ( ) ; } catch ( IllegalAccessException ie ) { throw new RuntimeException ( "new another" , ie ) ; } catch ( InstantiationException ie ) { throw new RuntimeException ( "new another" , ie ) ; } dexClassLoader . getResource ( "nonexistent" ) ; }
create a class loader , explicitly specifying the source dex and the location for the optimized dex .
