开发者

Sharing Android NDK Lib

开发者 https://www.devze.com 2023-01-11 21:01 出处:网络
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

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:

  1. Adding the lib with every application
  2. 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)

0

精彩评论

暂无评论...
验证码 换一张
取 消