@Override protected void onPostExecute(User u) { // TODO Auto-generated method stub if (u != null) { if (u.getProfile_id() == PROFILE_ADMIN_ID) { user = u; Intent go_to_cartacliente = new Intent("com.roamtouch.menuserver.ADMIN"); Bundle args = new Bundle(); args.putString("ip_maestra", ip_maestra); go_to_cartacliente.putExtras(args); startActivity(go_to_cartacliente); } else { Toast.makeText( LoginActivity.this, "Acceso denegado para el usuario ingresado!", Toast.LENGTH_SHORT) .show(); } } else { Toast.makeText(LoginActivity.this, "Usuario o contrasenia incorrecto", Toast.LENGTH_SHORT) .show(); } }