Example #1
0
 private void alertConcerned(Object... params) {
   Callback callback;
   for (WeakReference<Callback> cb : concerned) {
     callback = cb.get();
     Log.d(TAG, "alerting: " + cb + " = " + callback);
     if (callback != null) {
       callback.callback(params);
     }
   }
   if (throttle != null) {
     throttle.requestDidComplete(this);
   }
 }
Example #2
0
 @Override
 protected void onPostExecute(Object result) {
   Log.d(TAG, "onPostExecute " + result + " | " + responseObject + " | " + responseCode);
   if (callback != null) {
     Callback cb = (Callback) callback.get();
     if (cb != null) {
       cb.callback(
           EVENT_WEB_CALL_COMPLETE,
           result,
           responseCode,
           responseObject); // HttpURLConnection.HTTP_OK
     }
   }
   clear();
 }