Пример #1
0
 @Override
 public void parseResult(String result) {
   try {
     AuthInfo mAuthInfo = new AuthInfo(new JSONObject(result));
     receiver.onReceiveAuthentication(mAuthInfo);
   } catch (JSONException e) {
     Log.e(TAG, "AuthParser JSON exception");
     e.printStackTrace();
     receiver.onError(e);
   }
 }
Пример #2
0
 @Override
 public void onError(Exception error) {
   Log.e(TAG, "AuthParser of JSONParserInterface exception");
   receiver.onError(error);
 }