摘要:
捕获返回键,弹出是否确定返回应用MainMenu的对话框public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_BACK){ new AlertDialog.Builder(this) .setIcon(R.drawable.icon) .setTitle(R.string.app_name) .setMessage(R.string.quit_desc) .setNegativeBu... 阅读全文