¡@

Home 

2014/10/16 ¤W¤È 08:17:55

android Programming Glossary: linha

Android HTTP Request AsyncTask

http://stackoverflow.com/questions/8829135/android-http-request-asynctask

public class Get extends AsyncTask Void Void String @Override protected String doInBackground Void... arg String linha String retorno mDialog ProgressDialog.show mContext Aguarde Carregando... true Cria o cliente de conexão HttpClient client.. rd new BufferedReader new InputStreamReader response.getEntity .getContent Lê o buffer e coloca na variável while linha rd.readLine null retorno linha catch ClientProtocolException e e.printStackTrace catch IOException e e.printStackTrace.. response.getEntity .getContent Lê o buffer e coloca na variável while linha rd.readLine null retorno linha catch ClientProtocolException e e.printStackTrace catch IOException e e.printStackTrace return retorno @Override protected..