Reputation: 27230
see i have refereed http://marakana.com/forums/android/examples/49.html
and make a java application using some sort of c code by jni now when ever i compile this package and get the .apk of that application.
But now my question is that here if have cross-compile c code for arm platform then this .apk will work on only arm platform right? it will not work on other platform's android machine?
Now if i need to make this .apk as platform independent then how can i make that?
Upvotes: 2
Views: 440
Reputation: 5456
According to http://source-android.frandroid.com/ndk/docs/APPLICATION-MK.html, you should put the line APP_ABI := all
in your Application.mk
, and than it will compile your code separately for each platform that support android.
(For only some platforms, you can write something like APP_ABI := armeabi x86
)
Upvotes: 2