android: how to retrieve data from sql server using web service -


How to save and retrieve data from a database Can someone give me a little help that the web service is from the database and How to connect to the app, what will be the first step to get started? Thank you.

  1. Create a web server that is sending Jason object for you
  2. < Li> Then use the http call to get this Jason in this way:
  throws the public string httpGet (string URL) IOException {HttpGet get = New HttpGet (URL); DefaultHttpClient () _httpClient = New DefaultHttpClient (); Original HttpContext httpContext = New BasicHttpContext (); HttpResponse response = null; Response = httpClient Execute (Mill, httpContext); Threaded Positions = Response .getStatusLine (); Int statusCode = statusLine.getStatusCode (); Return EntityUtils.toString (response.getEntity ()); }  

For more information, please leave me a message, please.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -