Sunday, September 11, 2011

[android-developers] Dynamically loading code in Android application

Is it possible to run code downloaded ar runtime? Something like

new URLClassLoader(myURL).loadClass("MyClassName")

The class code will be in a JAR archive. The question is how do I compile and package that code? I think Dalvik cannot executes plain Java bytecode, so I'll have to postprocess the JAR with dx tool. Is is right? But unfortunately dx is not documented, so I really need more information on this topic

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment