public static void disableConnectionReuseIfNecessary(){
  if (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) {
    System.setProperty("http.keepAlive","false");
  }
}

public static void disableConnectionReuseIfNecessary ( ) { if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . FROYO ) { System . setProperty ( "http.keepAlive" , "false" ) ; } }
workaround for bug pre - froyo , see here for more info : http : / / android - developers . blogspot . com / 2011 / 09 / androids - http - clients . html
