I want to read data from an external .db file in my android app. So I have a .db file and added it to my project folder.
Now I want to access to this file by JDBC, so I added a JDBC.jar file and connected to my DB with
Class.forName("org.sqlite.JDBC");
Connection conn = DriverManager.getConnection("jdbc:sqlite:myDatabase.db");
and it works fine in a normal java project.
But when I want to do it in an activity in my android project, I always get a ClassNotFoundException. I checked the class's existence in my android project. It's: 'myProject/Referenced Liberaries/sqlitejdbc-v056.jar/org.sqlite/JDBC.class', so the right path I think.
What's the reason for that exception?