Code example for DefaultHttpClient

0
   
  @Override 
  public void onCreate() { 
    super.onCreate(); 
     
    client=new DefaultHttpClient();
  } 
   
  @Override 
  public void onDestroy() { 
    super.onDestroy(); 
     
    client.getConnectionManager().shutdown();
  } 
 
  @Override  
  public void onHandleIntent(Intent i) {
    HttpGet getMethod=new HttpGet(i.getData().toString());
    int result=Activity.RESULT_CANCELED;