These are chat archives for nata007/cursoAndroid

24th
Jun 2016
José Oviedo.mx
@oviedo
Jun 24 2016 17:58
Detectar boton BACK
//PARA CACHEAR BOTON ATRAS
public boolean onKeyDown(int keyCode, KeyEvent event) {
    // TODO Auto-generated method stub
    if (keyCode == event.KEYCODE_BACK) {
        startActivity(new Intent(Parametro.this,MainActivity.class));
        finish();
    }
    return super.onKeyDown(keyCode, event);
}