Closed indianpoptart closed 7 years ago
When device is in standby, it will not run the service, you have to turn on the device, then it will run
Add to main activity
IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_ON); filter.addAction(Intent.ACTION_SCREEN_OFF); BroadcastReceiver mReceiver = new ScreenReceiver(); registerReceiver(mReceiver, filter);
Semi fixed as this was only happening on B14CKB1RD kernel
When device is in standby, it will not run the service, you have to turn on the device, then it will run
Add to main activity