Monday, August 22, 2011

Connecting anDroiD wid the Remote Server

This is will be pre-requisite in all Android app as you will need to bring or send data or for advertisement. Using Http Request Android Application can connect to remote server.


HttpClient httpclient = new DefaultHttpClient();

HttpPost httppost = new HttpPost("www.yourUrl.com");


Here HttpClient Object is created and you are using post method. Using Http post method you can send and get data from server,whereas using Http Get you can only get the data.







No comments:

Post a Comment