标签:android io 使用 ar java sp art 问题 c
// 解锁 KeyguardManager manager = (KeyguardManager) getSystemService(KEYGUARD_SERVICE); if( manager.inKeyguardRestrictedInputMode() ){ //处于锁定界面,界面则通过KeyguardLock类方法来解锁 KeyguardLock keyguard = manager.newKeyguardLock(getLocalClassName()); keyguard.disableKeyguard(); }
//点亮屏幕 PowerManager pm = (PowerManager)getSystemService(POWER_SERVICE); mWakelock = pm.newWakeLock(PowerManager.ACQUIRE_CAUSES_WAKEUP |PowerManager.SCREEN_DIM_WAKE_LOCK, "SimpleTimer"); mWakelock.acquire(); //....... mWakelock.release();
怎样在安卓中实现在锁屏状态下弹出对话框,并可以震动和铃声,就像闹钟似的?
标签:android io 使用 ar java sp art 问题 c
原文地址:http://www.cnblogs.com/shaochuyun57/p/4002199.html