4

How to detect and/or enable developer mode in Android, using the sdk?

I already know about this:

boolean isDebuggable =  ( 0 != ( getApplicationInfo().flags &= ApplicationInfo.FLAG_DEBUGGABLE ) );

But this is not what I'm looking for. I want to see if the developer mode is enabled ("USB Debugging"), and if possible enable it.

Rickmp
  • 51
  • 4

0 Answers0