Does Android go to deep sleep to broadcast ACTION_TIME_TICK ? From experiments, I do not think so, but I am looking for the final answer.
My experiment involved registering a simple BroadcastReceiver to update a TextView when receiving:
registerReceiver(new BroadcastReceiver() { int ctr = 0; @Override public void onReceive(Context context, Intent intent) { testView.setText("Time ticks: " + ++ctr); } }, new IntentFilter(Intent.ACTION_TIME_TICK));
At 4 ticks, I turned off the screen for about 5 minutes, then turned it on again and read 6 ticks. At 13 ticks, I turned the screen for 10 minutes, then turned it on again, and the number of ticks read 14. It seems to have increased by 1-2 ticks, regardless of how long I leave the phone, so I suspect that it does not broadcast action during deep sleep.
android
Kevin k
source share