VMDaemonServices
VMDaemonServices copied to clipboard
Android 守护进程的实现
Results
1
VMDaemonServices issues
Sort by
recently updated
recently updated
newest added
VMWakeReceiver 需要采用代码的形式在MainActicity中进行注册,否则收不到ACTION_SCREEN_OFF/ACTION_SCREEN_ON的广播 //注册广播 final IntentFilter filter = new IntentFilter(); filter.addAction(VMWakeReceiver.DAEMON_WAKE_ACTION); // 屏幕灭屏广播 filter.addAction(Intent.ACTION_SCREEN_OFF); // 屏幕解锁广播 filter.addAction(Intent.ACTION_USER_PRESENT); vmWakeReceiver = new VMWakeReceiver(); registerReceiver(vmWakeReceiver, filter);