Code example for ActionBarActivity

Methods: startActivity

0
 
		} else if (btnRegistrar.getId() == view.getId()) {
			// Toast.makeText(this, "Presiono Registrar!!..", 
			// Toast.LENGTH_SHORT).show(); 
			Intent intento = new Intent(this, RegistroActivity.class);
			startActivity(intento);
		} 
 
	} 
	 
	private void validar(){ 
		findViewById(R.id.btnLogin).setVisibility(View.GONE);
		findViewById(R.id.btnRegistrar).setVisibility(View.GONE);
		findViewById(R.id.progressBarLogin).setVisibility(View.VISIBLE);
		 
		String usuario = edtUsuario.getText().toString();
		String pass = edtPassword.getText().toString();
 
		if (usuario != null && !usuario.equals("") && pass != null
				&& !pass.equals("")) {