hi Elliott,

what exactly does it mean that the driver is unsupported and that
it shouldn't be used?

are you saying that JDBC should not be used at all? without
loading the jdbc driver with Class.forName() it isn't registered.

that concludes the code snippet in Joerg's post above is
not allowed?

Thanks a bunch,
- Kris


On Dec 15, 12:42 am, enh <[email protected]> wrote:
> theJDBCdriver is undocumented because it's unsupported. please do
> not use reflection to access undocumented/unsupported API.
>
>  --elliott
>
> On Dec 14, 5:29 am, kristianlm <[email protected]> wrote:
>
>
>
> > Hi jotobject,
> > I don't understant why this wouldn't be part of the public API. if
> > Android is shipped with aJDBCdriver, why not let people use it? It's
> > certainly useful for many of us!
>
> > Kris
>
> > On Dec 12, 10:42 pm, jotobjects <[email protected]> wrote:
>
> > > On Dec 8, 10:41 pm, Joerg Pleumann <[email protected]> wrote:> 
> > > Regarding android.jar, I never checked but I could imagine that it
> > > > contains only the public API classes and might even have the actual
> > > > bytecode erased. Nothing is ever run against it. It is just there to
> > > > make Javac or Eclipse happy (somebody please correct me if I'm wrong).
> > > > On the device, the driver should be part of /system/framework/
> > > > core.jar.
>
> > > The SQLite driver is never used by the public API.  You pass the name
> > > as a String URI "jdbc:sqlite:" to getConnection().  That is the way
> > >JDBCalways works. The drivers are not part of the public API so the
> > > documentation is NOT missing anything regarding drivers.
>
> > > As far as I can see the only missing documentation is the URI
> > > "jdbc:sqlite:" as in Joerg's example -
>
> > >             String db = "jdbc:sqlite:" + getFilesDir() + "/test.db";
> > >             Class.forName("SQLite.JDBCDriver");
> > >             Connection conn = DriverManager.getConnection(db);
>
> > > The Class.forName() call is only necessary if Android does not
> > > automatically register the driver with DriverManager (I don't know if
> > > it does or not).

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

Reply via email to