// 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); }
// make a request to the specified url @Override protected String doInBackground(String... uri) { return TomatoesUtils.getResponseServiceAPI(uri); }