Can only use native code running on android as a standalone application

We want to port a huge complex native program to the Android system, running it as a background service receive command sent from a Java program using JNI along with IPC. However, the Android NDK contains the following words:

Please note that the NDK does not allow you to develop applications only for the native language. The primary Android environment remains the Dalvik virtual machine.

Does this mean that we do not have the ability to run a standalone application only for relatives on Android as a background service? Native code can exist only in the form of a library that will be downloaded to the virtual machine through JNI?

+3
source share
3 answers

The NDK itself is intended only for creating libraries, although if you do some kind of search on the Internet, you will find that there are at least two sets of shell scripts or instructions for (ab) using your toolchain to make standalone executables files related to android bionic libc (something that you would not get from a toolchain without an android).

google . , Java- - "" , , . , .

+4

, . , , NDK, , , Android.

( ) .

0

Please check this great example to run native exe in android:
http://vilimpoc.org/blog/2010/09/26/straightforward-android-native-executables/

thank

0
source

Source: https://habr.com/ru/post/1773557/


All Articles