tags:

views:

14

answers:

0

I Want to manage Home,EndCall and Back Button.. I m working with foolowing but it 's not working for Home and EndCall Key

public boolean onKeyDown(int keyCode, KeyEvent event) {

if (keyCode == KeyEvent.KEYCODE_BACK||keyCode == KeyEvent.KEYCODE_HOME ) { Log.i("In Home", " Event"); onDestroy(); return true; } else { Log.i("In Else", " Event"); return true; // return super.onKeyDown(keyCode, event); }