forked from chirino/lmdbjni
-
Notifications
You must be signed in to change notification settings - Fork 28
Home
Kristoffer Sjögren edited this page Sep 4, 2015
·
2 revisions
See #39
- Choose an emulator using armeabi-v7a ABI.
- Put liblmdbjni.so from lmdbjni-android-${version}.jar in src/main/jniLibs/armeabi
- Load library before opening environment and database.
System.loadLibrary("lmdbjni");
// use a writable directory
android.content.Context ctx = getApplicationContext();
File dir = ctx.getFilesDir();
Env env = new Env();
env.open(dir.getAbsolutePath());
Database db = env.openDatabase();