Ejemplo n.º 1
0
 protected void onPostExecute(HashMap<String, String> paramHashMap) {
   if (((String) paramHashMap.get("success")).equals("true")) {
     Utils.makeToast(Register.this.context, "Registration complete!", 1);
     Register.this.launchLogin();
     return;
   }
   Utils.makeToast(this.mActivity, (String) paramHashMap.get("errors"), 1);
 }
Ejemplo n.º 2
0
 public void onPostExecute(ArrayList<HashMap<String, String>> results) {
   if (success) {
     webview.loadData(htmlResponse, "text/html", "UTF-8");
   } else if (errors.equals(Constants.INVALID_SESSION)) {
     launchLogin();
   } else if (errors.equals(Constants.NEVER_CHECKED_IN)) {
     if (isSelf) noCheckinsTextView.setText(Constants.SELF_NO_CHECKINS);
     else noCheckinsTextView.setText(Constants.OTHER_NO_CHECKINS);
     noCheckinsTextView.setVisibility(1);
   } else {
     Utils.makeToast(context, errors, Toast.LENGTH_LONG);
   }
 }