tugwilson wrote:
As i understand it, the Android JVM does not use the normal JVM bytecodes. There is a preprocessor which converts class files produced by the Java compiler into the format used by Android (the Android bytecodes use a register rather than a stack architecture).
I do not believe that the preprocessor runs on Android.
I think that this makes the use of custom ClassLoaders and dynamic compilation using ASM impossible at the moment on Android.
Hmm..
I have gone back to the Android documentation and they *do* seem to support ClassLoaders. So it's possible that you could do dynamic compilation to bytecodes in memory and load the class via a custom ClassLoader.
John Wilson