Android: Sleep stages/levels on an Android device?

前端 未结 4 1851
耶瑟儿~
耶瑟儿~ 2020-12-08 08:25

Is there a notion of sleep stages/levels on Android?

From browsing the mailing lists, I\'m aware that there exist a stage called \"Deep Sleep\". Do execution for al

4条回答
  •  囚心锁ツ
    2020-12-08 09:25

    From browsing the mailing lists, I'm aware that there exist a stage called "Deep Sleep".

    There is not really a separate stage called "deep sleep". There is only "awake", "asleep", and "off".

    Do execution for all apps halt when device reaches this state?

    Execution of all processes ceases when the device goes to sleep or is powered off.

    If so, besides user hitting the power button, what else could wake the device back up?

    • An alarm from AlarmManager
    • An incoming phone call
    • An incoming text message
    • If you have a socket open on wireless data (not WiFi), an incoming packet on that socket

    Those are the big ones. There might be others.

提交回复
热议问题