コード例 #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);
 }