public static String reade(String url){
Log.d(TAG,url);
StringBuffer sb2 = new StringBuffer();
String jsonstr="[";
HttpClient httpclient = new DefaultHttpClient();
HttpPost httpReqest=new HttpPost(url);
try{
HttpResponse response = httpclient.execute(httpReqest);
HttpEntity entity = response.getEntity();
BufferedReader reader = new BufferedReader(new InputStreamReader(entity.getContent()));
StringBuffer sb=new StringBuffer();
String line=null;
while((line=reader.readLine())!=null){
sb.append(line+"\n");
}
reader.close();
JSONArray ja=new JSONArray(sb.toString());
for (int i = 0; i < ja.length(); i++) {
JSONObject jobj= (JSONObject)ja.get(i);
Log.d("xxx=",jobj.toString());
sb2.append("SOBranchID:").append(jobj.getString("SOBranchID")).append(" ");
if(i<ja.length()-1){jsonstr=jsonstr+jobj.toString()+",";}
if(i==ja.length()-1){ jsonstr=jsonstr+jobj.toString();}
// sb2.append("BranchID:").append(jobj.getString("BranchID")).append(" ");
}
}catch(Exception e){
Log.i("uuu", e.toString());
}
jsonstr=jsonstr+"]";
Log.d("jsonstr=",jsonstr);
return jsonstr.toString();
}