Hi Mark,
and thanks for your feedback.

I cannot say I quite follow you though. There isn't really that much
overhead involved, and my JAR-file is only 17kB. The JDBC Driver is a
simple wrapper for the SQLiteDatabase calls, but only a small subset
of the JDBC interface is implemented.

I haven't used JDBC extensively, but I don't see why you wouldn't want
to do the database basics using JDBC. That way, everyone wouldn't have
to learn another database API and the code would be portable. In my
opinion, these benefits undermine the minor overhead introduced by a
JDBC driver.

In JDBC, you can specify things like directions of cursor (e.g.
CURSOR_FORWARD_ONLY) etc. which fits nicely into the existing
SQLiteDatabase architecture. So I guess my argument is while JDBC is
designed for heavy stuff, it is still suitable for embedded stuff.
Specially when Android already has the JDBC interface readily
available.

- Kris


On Dec 8, 4:00 pm, "Mark Murphy" <mmur...@commonsware.com> wrote:
> > Why is no such JDBC driver already included in Android?
>
> Android does not support JDBC.
>
> > Am I missing the big picture here?
>
> Android is designed to be used on devices with limited RAM, limited CPU,
> limited storage space for application code, and limited electricity
> (battery), to connect to local databases.
>
> JDBC is designed to be used on devices with lots of RAM, lots of CPU
> speed, comparatively unlimited storage space for application code,
> full-time AC power, to connect to local databases and database servers.
>
> > Why would you not want to interface the built-in SQLite engine
> > through JDBC?
>
> You lose performance, battery life, and on-board storage space, all of
> which are in short supply in an Android device.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Books:http://commonsware.com/books.html

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to