How to check usb debugging enabled programmatically?
Try this:
if(Settings.Secure.getInt(context.getContentResolver(), Settings.Secure.ADB_ENABLED, 0) == 1) {
// debugging enabled
} else {
//;debugging does not enabled
}
Try this:
if(Settings.Secure.getInt(context.getContentResolver(), Settings.Secure.ADB_ENABLED, 0) == 1) {
// debugging enabled
} else {
//;debugging does not enabled
}