The Native Code of the Android application is going alone with application as lib file in the APK file. Suppose if I want to share a native code between two different applications, Is there any trick avail apart from the below:
- Adding the lib with every application
- Copy the lib in to system/lib folder and dynamically link it with application. (If we build just on开发者_StackOverflow社区ly the applications then we cannot use this).
You can't copy anything onto /system unless you are root, so I'd suggest you just include your native library in every application that needs it.
You must create library project ant than create your activity and lib.so file. You may be added all project this library.(Such as vitamio)
精彩评论