I am using a PHP web service which I am enjoying on the Android application.
The Web service incorporates data on a database and provides information about it.
How can I parse the result of using that web service to avoid errors?
In Android, I execute the request of the post like this:
HTTPRSpace response = httpclient.execute (httpost);
What do I need to do on the Web service to process potential errors?
Thank you!
As Eduiao and Duetro said. You can see the status code of your response
int statusCode = response.getStatusLine (). GetStatusCode ();
List of status codes - Exceptions to code and handle accordingly
No comments:
Post a Comment