Exemplo n.º 1
0
 @Override
 protected void onPostExecute(ResponseObject result) {
   super.onPostExecute(result);
   if (result.getListener() != null) {
     result.getListener().receivedResponse(result);
   }
 }
Exemplo n.º 2
0
 @Override
 protected ResponseObject doInBackground(ResponseListener... params) {
   ResponseObject response = RESTUtils.get(Globals.restUrl + "/session/list");
   // --
   response.setListener(params[0]);
   return response;
 }