Guest User

Untitled

a guest
Aug 14th, 2012
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Android JNI, how to load library with soname libxx.so.1.2.3
  2. System.load("/data/local/tmp/libxx.so.1.2.3");
  3. System.loadLibrary("myjni");
  4.  
  5. File privateStorageDir = applicationContext.getFilesDir();
  6. String libPath = privateStorageDir.getAbsolutePath(); // copy the lib to here ...
  7.  
  8. System.load(libPath + "/" + SO_LIB_NAME);
Advertisement
Add Comment
Please, Sign In to add comment