Tuesday, April 16, 2013

Disable back button android


Disable back button
disable home button android


@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
boolean i = false;
if ((keyCode == KeyEvent.KEYCODE_BACK)) {

i=true;
}
return i;
}



to disable home button put KEYCODE_HOME

No comments:

Post a Comment