Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLDroid Vs Android internal JDBC driver

Tags:

android

sqlite

I am developing an android application which uses the SQLite database. In that case, I am in confusion which driver to use?

SQLDroid driver from this page https://github.com/SQLDroid/SQLDroid or the internal android JDBC driver. Please share your suggestions regarding which one is best to use?

like image 698
Neela Avatar asked Feb 27 '26 20:02

Neela


1 Answers

Android does not come with a normal JDBC driver. If you need JDBC you can use sqldroid otherwise you have to use the android internal database API. If you realy need JDBC, keep in mind, that the SQLDroid implementation does not provide all JDBC driver features. There are many methods that are not implemented!

Edit: On Android 2.3, I guess, there is an undocumented JDBC driver named SQLite.JDBCDriver located in /system/framework/sqlite-jdbc.jar, but I recommend not to use this!! This will probably crash on most other android versions.

like image 89
markus Avatar answered Mar 02 '26 14:03

markus