摘要: 再按一次返回键退出最终完整方案:boolean isExit;@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); MyApplication.getInstance().addActivity(this);}@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if... 阅读全文
posted @ 2013-12-24 12:09 Sudawei 阅读(370) 评论(0) 推荐(0) 编辑