Exemple #1
0
 public void showFailInfo(JSONObject jo) {
   try {
     int status = jo.getInt(URL.STATUS);
     switch (status) {
       case 1:
         showCustomToast(jo.getJSONObject(URL.RESPONSE).getString(URL.INFO));
         break;
       case 2:
         showCustomToast(jo.getJSONObject(URL.RESPONSE).getString(URL.INFO));
         loginOut();
         break;
     }
   } catch (JSONException e) {
     e.printStackTrace();
   }
 }
Exemple #2
0
 public void showIntentErrorToast() {
   showCustomToast("网络连接失败");
 }