IMHO, the conceptually correct way to do this is with a ContentProvider, which exposes a database-like interface and can behind the scenes access any datasource you wish (yes, it can go across the net). 'Just' marshal your requests into a web request and parse the response into something like a MatrixCursor that you return (for queries). (I am for my own stuff are accessing a REST interface to a MySQL DB, which gives me an XML file back, which I parse with SAX and fill into a MatrixCursor. Works fine - as long as the server is reasonably responsive and the result sets are not too large).
I would think that this is also a future-proof way of doing it as companies such as Oracle or Sun (MySQL) will almost certainly provide ContentProviders that can be configured to access their DBs sometime in the future. Ludwig 2008/10/1 Mast3rpyr0 <[EMAIL PROTECTED]> > > hmm that kinda sucks, maybe a PHP script run from the phoen on the > webserver to get the appropriate data. but how could i do that behind > the scenes? > > On Oct 1, 5:40 pm, Billsen <[EMAIL PROTECTED]> wrote: > > I think you may try to access database in your phone directly. If that > > is the case, it is hard to do since there are no database drivers for > > Oracle, MySql, MS SQL server in android. If you really want to push > > data from your phone to database, you can develop application in your > > web server to access database and send data from the phone to your > > application. > > > > Regards, > > Senshan > > > > On Oct 1, 4:21 pm, Mast3rpyr0 <[EMAIL PROTECTED]> wrote: > > > > > is this possible? i need to send data from my phone to a sql server on > > > my website instead of in an onboard SQLlite DB. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

