Пример #1
0
 // if the request above completed successfully, this method will
 // automatically run so you can do something with the response
 @Override
 protected void onPostExecute(String response) {
   super.onPostExecute(response);
   if (response != null) {
     Log.d("Response", "Respuesta onPostExecute objeto response no vacio");
     TomatoesUtils.updateMovies(response, lvTimeline, MainMovie.this);
     // update the UI
   }
   Log.d("Response", "Respuesta onPostExecute: " + response);
 }
Пример #2
0
 // make a request to the specified url
 @Override
 protected String doInBackground(String... uri) {
   return TomatoesUtils.getResponseServiceAPI(uri);
 }