文件名称:android手机开机向导源码
文件大小:829KB
文件格式:GZ
更新时间:2018-06-23 09:39:05
android 开机向导 源码
开机向导详细的代码 private final BroadcastReceiver homePressReceiver = new BroadcastReceiver() { final String SYSTEM_DIALOG_REASON_KEY = "reason"; final String SYSTEM_DIALOG_REASON_HOME_KEY = "homekey"; @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action.equals(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)) { String reason = intent.getStringExtra(SYSTEM_DIALOG_REASON_KEY); if (reason != null && reason.equals(SYSTEM_DIALOG_REASON_HOME_KEY)) { return; // if (Constant.CAULK_OFF == 0) // snooze();// 退出程序... // else // dismiss(false, false); } } } };