Beispiel #1
0
    @Override
    public void onComplete(String response) {
      if (!TextUtils.isEmpty(response)) {
        try {
          JSONObject obj = new JSONObject(response);
          String value = obj.getString("result");

          if ("true".equalsIgnoreCase(value)) {
            AccessTokenKeeper.clear(SetActivity.this);
            mAccessToken = null;
          }
        } catch (JSONException e) {
          e.printStackTrace();
        }
      }
    }