示例#1
0
 protected void loginfailed() {
   Toast.makeText(this, "Login failed", Toast.LENGTH_SHORT).show();
   if (httpConnect != null) {
     httpConnect.stopThread();
     httpConnect = null;
   }
 }
示例#2
0
 @Override
 public boolean onKeyDown(int keyCode, KeyEvent event) {
   if (keyCode == KeyEvent.KEYCODE_BACK) {
     if (dlg != null && dlg.isShowing()) {
       dlg.dismiss();
       dlg = null;
     }
     if (httpConnect != null) {
       httpConnect.stopThread();
       httpConnect = null;
     }
     finish();
     System.exit(0);
   }
   return false;
 }
示例#3
0
  protected void loginScc() {
    Toast.makeText(this, "Login Succed", Toast.LENGTH_SHORT).show();
    if (httpConnect != null) {
      httpConnect.stopThread();
      httpConnect = null;
    }

    Intent intent = new Intent(this, GetLine.class);
    Bundle map = new Bundle();
    map.putString("sessionid", sessionid);
    map.putString("IPADDRESS", ipadd);
    map.putString("PORT", portstring);
    map.putString("MAIL", email);
    intent.putExtra("SESSIONID", map);
    startActivity(intent);
  }