http://stackoverflow.com/questions/3022454/how-to-load-a-java-class-dynamically-on-android-dalvik

 

Not verified yet.

Have an idea to dynamize my com/westswrod/ads for a while.

Don’t know if there is a chance and time to implement it.

In this way,there is no problem to load a normal class and run it。But it seems that it is not possible to load an Activity class,or a class that referenced an activity class。See

  1. http://stackoverflow.com/questions/2903260/android-using-dexclassloader-to-load-apk-file
  2. http://stackoverflow.com/questions/12976854/is-it-possible-to-dynamically-load-a-activity-class-from-a-jar-library-on-the-sd/
Advertisements