Here's one of the general patterns for using the HttpClient :
1- Create an HttpClient (or get an existing reference).
2- Instantiate a new HTTP method , such as PostMethod or GetMethod.
3- Set HTTP parameter names/values.
4- Execute the HTTP call using the HttpClient.
5- Process the HTTP response.
* You will need to add android.permission.INTERNET to your manifest file when making HTTP
calls using the HttpClient.
1- Create an HttpClient (or get an existing reference).
2- Instantiate a new HTTP method , such as PostMethod or GetMethod.
3- Set HTTP parameter names/values.
4- Execute the HTTP call using the HttpClient.
5- Process the HTTP response.
* You will need to add android.permission.INTERNET to your manifest file when making HTTP
calls using the HttpClient.
No comments:
Post a Comment