I create a class and sqlite dbhelper class that strore data in
sqlite database .
Now I want to access data from out side off project.
I want to access data from database directly in another class another
package .
already android have sqlite data base.so is there any need to add
sqlite jar file??
so i want to connect jdbc. how can i connect jdbc ??
I create a class .I just check if connection is on /off.
Class.forName("org.sqlite.JDBC");
Class.forName("SQLite.JDBCDriver");
Connection conn =
DriverManager.getConnection("jdbc:sqlite:/data/data/
com.gallait.mDate/db.sqlite");
// Connection conn =
// DriverManager.getConnection("jdbc:sqlite:Eventsdb");
Statement stat = conn.createStatement();
System.out.println("conn success");
conn.close();
System.out.println("conn close");\\
what can I pass in Class.forName("????????")
There is Error shown.
Class is not found.
so How can i write in Class.forName() and getConnction method(?????)?
Please help me?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en