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.
- Create a web server that is sending Jason object for you < 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
Post a Comment