Android ClassLoader - dynamic loading of class by name2010-06-10 04:32:03So you have the names of a bunch of classes, how can you load them? Here's the code (needs to be in an activity to make use of getPackageManager()): You can combine several apk-files in the string apkName by separating them with a ":". Pretty simple, huh :) Thanks to Josh for his blog post on Dynamic Loading. His example has a problem though, as he assumes the apk-file is located in Posted by android 2 0 Comments |
|
| Comments: |
|---|
Page: 1
Please login to post a reply.