0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Android 開発者オプションが有効か確認する方法

Posted at

開発者オプションが有効か確認する方法

こちらを使用します

サンプルコード

.kt
private fun debugCheck() {
    val isDebugMode = Settings.Global.getInt(contentResolver, DEVELOPMENT_SETTINGS_ENABLED, 0)
    Log.d("開発者モード", isDebugMode.toString())
}

実行結果

開発者モードON
開発者モード 1
開発者モードOFF
開発者モード 0
 取得した結果を確認すればデバッグモードがどうなっているか判断できると思います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?