Android - How to check if Developer option is enabled

前端 未结 3 1065
耶瑟儿~
耶瑟儿~ 2020-12-06 07:12

How can I check if the user has developer option enabled on its device? (not with adb comunication active, or debug USB active, I need to know only if Developer Option are e

3条回答
  •  -上瘾入骨i
    2020-12-06 07:57

    You should use getInt or another in Settings.Global with DEVELOPMENT_SETTINGS_ENABLED

    Edit : Below API 17, it is the same but with Settings.Secure

提交回复
热议问题