How Can I Include Proper Include Files For Using Libdvm.so At My Shared Library?
I want to use below API which is at dalvik/vm/native/dalvik_system_DexFile.cpp: static void Dalvik_dalvik_system_DexFile_defineClass(const u4* args, JValue* pResult) static void D
Solution 1:
Those are the JNI implementions of the corresponding methods in the DexFile class. They would normally be called at the java level, by calling, e.g. the DexFile.defineClass() method, or at the JNI level, by using the normal JNI stuff for calling that java method.
Note however, neither of these methods are part of the public api, and you can't depend on them being present or having a particular prototype.
If you are wanting to load your own custom classes, look at the DexClassLoader class. Additionally, here's a related blog article about using DexClassLoader.
Post a Comment for "How Can I Include Proper Include Files For Using Libdvm.so At My Shared Library?"