check whether lock was enabled or not

后端 未结 9 1334
情书的邮戳
情书的邮戳 2020-11-30 23:52

I have to check whether system lock was enabled or not in settings.

I used below line code

boolean b = android.provider.Settings.System.getInt(
              


        
9条回答
  •  自闭症患者
    2020-12-01 00:24

    If you talk about the screen lock you may try to setup specific BroadcastReceiver and listen to specific Intents from the system.

    Hope it helps. Sorry if I didn't understand you :)

提交回复
热议问题