I am developing a library for Android applications that does not use native code (JNI). I tried to give the library as an external banner in my Android projects, but this method does not include the contents of the library in apk and thus throws a class of not found errors when running in the emulator or device. I also tried to create the library as an Android project on its own, and it really works, but only for public static properties (not methods). When the library and the application are in a separate apk, I see that the VM notices the links to the library and can read some properties, but when I try to create an instance of the class in the library, I get the class not found, although I can read public static properties (very frustrating !!).
I understand that Davlik's bytecode does not match Java's bytecode, but I am having problems even finding good information on how to solve what would be a very simple problem in Android. Now I'm studying the old PlatformLibrary stuff, but I'm not sure if this will work either after the sample has been removed from the Android site :(
So help me if you can, if I find an answer before that, I will share it.
viva la Android!
source
share