I use this same method only I return back XML instead of JSON with my .net
webservices and app.

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Nicholas Johnson
Sent: Sunday, April 10, 2011 10:54 AM
To: [email protected]
Subject: [android-developers] Re: Connecting Andrid Application to Sql
Server Database

 

The best way I've found to connect your local (app) database to your server
database is to exchange information through JSON strings. Post a query
through an HTTP POST method to your website, decode the information, process
the SQL query on the server (I use PHP), then build and send a JSON response
to your app. Once back in your app, decode the JSON response and handle the
data.

 

It works for me in several of my apps (Pop Quiz & Prism).

 

Nick

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

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