search

Home  >  Q&A  >  body text

android 如何判断当前处于熄屏状态?

如题,android 如何判断当前处于熄屏状态?

天蓬老师天蓬老师2771 days ago604

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-17 17:24:22

    There is a system broadcast when the screen is off and on, and the corresponding broadcast action is Intent.ACTION_SCREEN_OFFIntent.ACTION_SCREEN_ON

    reply
    0
  • Cancelreply