本月博客排行
年度博客排行
-
第1名
宏天软件 -
第2名
龙儿筝 -
第3名
青否云后端云 - wallimn
- vipbooks
- gashero
- wy_19921005
- benladeng5225
- fantaxy025025
- zysnba
- e_e
- javashop
- sam123456gz
- tanling8334
- arpenker
- kaizi1992
- xpenxpen
- lemonhandsome
- xiangjie88
- ganxueyun
- xyuma
- sichunli_030
- wangchen.ily
- jh108020
- Xeden
- johnsmith9th
- zxq_2017
- zhanjia
- jbosscn
- forestqqqq
- luxurioust
- lzyfn123
- ajinn
- wjianwei666
- daizj
- ranbuijj
- 喧嚣求静
- silverend
- kingwell.leng
- lchb139128
- kristy_yy
- lich0079
- jveqi
- java-007
- sunj
- yeluowuhen
- lerf
- ssydxa219
- lstcyzj
- flashsing123
最新文章列表
按两次返回键退出程序
在Activity中重写onKeyDown方法即可
private long mPreKeyBackTime = 0;
private static final int EXIT_KEYBACK_DELTA_TIME = 2000;
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) { ...
android 按两次返回键退出
package com.anjoyo.test;
import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.Toast;
public class TestActivity extends Activity {
...