SQLite Forum

Library "libsqlitejdbc.so"for Android
Login

Library "libsqlitejdbc.so"for Android

(1) By Andrzej on 2021-09-12 03:18:09 [source]

I have

DriverManager.registerDriver((Driver) Class.forName(
                "org.sqlite.JDBC").newInstance());
connection = DriverManager.getConnection("jdbc:sqlite:" + dbname);
First, I changed temp directory, (old begin with "/data/user/0") for Samsung
System.setProperty("java.io.tmpdir","/data/data/com.sample.sqlite/cache"); 
next I changed dbname - in Android alone dbname cause search it in root directory I changed it to /data/data/com.sample.sqlite/cache/a1.db Finally I have:
java.lang.UnsatisfiedLinkError: dlopen failed: library "libsqlitejdbc.so" not found
Maybe libsqlitejdbc.so is, but in other folder than it is searched? I want compare time for JDBC, maybe using .so will faster than pure Java code. Usually Java code is translated to dex which is translated to binary code of snapdragon. What about native code Sqlite JDBC? I think libsqlitejdbc.so is designed for PC with x86 processors? Thus can't works in smartphones?