protected void loginfailed() { Toast.makeText(this, "Login failed", Toast.LENGTH_SHORT).show(); if (httpConnect != null) { httpConnect.stopThread(); httpConnect = null; } }
@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; }
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); }