(no title)
psanchez | 1 year ago
Also worth looking at the rawandroid project like others noted: https://github.com/cnlohr/rawdrawandroid/tree/master
psanchez | 1 year ago
Also worth looking at the rawandroid project like others noted: https://github.com/cnlohr/rawdrawandroid/tree/master
klibertp|1 year ago
pjmlp|1 year ago
In practice to be usable on a standard Android system, native code must always be compiled to a shared object, with JNI entry points to be called from Java userspace.
The only option is to write such native methods ourselves, or use one of the two predefined Activities for NDK that already expect specific functions to be present on the shared library.
Additionally, the zero Java part only works, if what NDK exposes as stable API is enough, and from Google's point of view, that is only for games, or faster compute, everything else requires JNI fun.
As tip, it is easier to deal with Android IPC for Java <-> NDK communication, than going through JNI boilerplate.
mouse_|1 year ago