Thoughts on Java files and forward compatibility?
Lauri Laanmets
lauri.laanmets at proekspert.ee
Mon Jul 4 11:10:22 CEST 2011
Hi
BogDan, you were right, it was too good to be true. DefineClass from
byte array is not implemented on Android.
I might be behind in the discussion but what's wrong in putting a .jar
file along with the Qt .so files? There is a way to create .jar file
with a .dex files inside and load it runtime using
http://developer.android.com/reference/dalvik/system/DexClassLoader.html
from Qt libraries - loading works, I have tried it. I can share some
code also if you are interested.
Regards
Lauri
On 27.06.2011 12:20, BogDan wrote:
> Actually is approximately the same thing as we've discuss, the only
> differenceis how you load those classes, you load them from java part
> or from c/c++ part.IMHO it will be more efficient that a class to be
> loaded on demand by its own C/C++ module, but as I said, it is too god
> to be true :) So, 'precompiled hard-coded Java class byte array'
> means you'll bundle your java binary (.class, .dex) into your c/c++
> .so file, instead to bundle it toan apk, or jar file.Of course we
> still need to design a new very simple and stable architecture, no
> matter which approach we'll choose/use !
More information about the Necessitas-devel
mailing list