如果要監聽那些特殊按鍵,應該可以參考生命週期
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_MENU) {
Log.e("", "Menu");
}
return super.onKeyDown(keyCode, event);
}
參考文章:
http://blog.csdn.net/tjd0227/article/details/5601941
http://developer.android.com/reference/android/view/KeyEvent.html