On Jan 18, 1:49 am, kristianlm <kristianl...@gmail.com> wrote:
> Hi folks,
>
> I guess we've concluded that the built-in JDBC for Android should not
> be used (even though it's there). Those of you who still want to use
> JDBC on Android can check out the JDBC driver I started myself for
> precisely this reason:
>
> http://code.google.com/p/sqldroid/
>
> It's a relatively simple implementation but does its job: offer jdbc
> access to android sqlite db.

writing a JDBC driver in terms of the supported
android.database.sqlite API, as you've done, is a clever idea! let us
know in the issue tracker if you find bugs in either
android.database.sqlite or java.sql. (you might want to go for the
APL2 license, though, if you want to maximize the number of projects
that will be able to use it. ianal.)

 --elliott

> And thanks for all the constructive feedback!
> Kris
>
> On Jan 12, 10:53 pm, jotobjects <jotobje...@gmail.com> wrote:
>
>
>
> > On Jan 11, 9:14 pm, Elliott Hughes <e...@jessies.org> wrote:
>
> > > On Dec 19 2009, 2:05 am, kristianlm <kristianl...@gmail.com> wrote:
>
> > > > hi Elliott,
>
> > > > what exactly does it mean that the driver is unsupported and that
> > > > it shouldn't be used?
>
> > > > areyousaying thatJDBCshould not be used at all?
>
> > >youcanuseJDBC,thoughitisn'twelltested.butwedopublicly
> > >supportthejava.sqlAPI.
>
> > Hi Elliott -
>
> > YoucannotuseJDBCifyoucan't get a Connection. Andyoucannot get
> > a Connection unless there is some documented way for the DriverManager
> > to find the SQLite driver.  ASFAIK this would be done by the platform
> > registering the driver, or it is done in a static initializer in the
> > driver class, hence theuseof Class.forName().
>
> > This is the pattern thatyouapparently say is NOT supported -
>
> >             String db = "jdbc:sqlite:" + getFilesDir() + "/test.db";
> >             Class.forName("SQLite.JDBCDriver");
> >             Connection conn = DriverManager.getConnection(db);
>
> > So then what is the correct supported way to get a Connection object?
> > If there is no documented way then maybe it is true thatJDBCis NOT
> > usable on Android currently?
>
> > I don't thinkJDBCis that critical to the platformbutit would be
> > nice to clarify if it is even usable.

-- 
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