Thanks much, Mega.  I use the inbuilt SQLite DB extensively.  The hope
was to contact a database outside of Android.

But alas!

Cheers, Scott

On Apr 1, 2:38 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> The SDK does not support this, there is no JDBC driver code distributed with
> Android and there is no MySQL database server running in the system.
> Android SDK ships with a inbuilt SQLite DB, which will be easier to use.
> Else, you may want search for keyword "jdbc" on the groups, you will find a
> couple of threads with discussions on the different alternatives for using
> MySQL, Oracle, etc in your Android apps.
>
> Thanks,
> Megha
>
>
>
> On Tue, Apr 1, 2008 at 4:42 AM, ScottG <[EMAIL PROTECTED]> wrote:
>
> > Anybody know how to load an ODBC driver into Android?  For example, a
> > MySQL driver?  The usual drill doesn't seem to work.  Class.forName
> > blows out.
>
> > import com.mysql.jdbc.*;
>
> >  class odbcConnection {
> >     public static Connection getConnection() throws Exception {
> >          Driver d = (Driver)Class.forName
> > ("com.mysql.jdbc.Driver").newInstance ();
>
> >          DriverManager.registerDriver(d);
>
> >          String URL = "jdbc:mysql:xxxx";
>
> >          d = DriverManager.getDriver(URL);
>
> >          Connection c = DriverManager.getConnection(URL, "yyyy",
> > "xxxx");
> >          return c;
> >        }
> > }- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to