Many of us need to perform web service to get data from servers to be used in our Android apps. I have developed a simple android api client using RESTful API. the library is very easy to use and does simple Http request that support four Http methods (GET, POST, PUT, and DELETE).
With this library you can build a http request and handle it's response result which categories into five categories:
- Informational response.
- Successful response.
- Client error response.
- Server error response.
- Exception response.
in the answer there is a simple example on how to use the library.
Here is the link for the library on GitHub
https://github.com/jorcad/AndroidApiClient
you can import the jar (android-api-client.jar) file to your project from the bin folder.
with this library you can specifiy the following parameter:
Example on how to build your first Api Call and handle the result: