How To Check Usb Debugging Enabled Programmatically?
my question is on an Android phone how can I check if the usb debugging flag is enabled or not programmatically? in my application I want to show the status of usb debugging and I
Solution 1:
Try this:
if(Settings.Secure.getInt(context.getContentResolver(), Settings.Secure.ADB_ENABLED, 0) == 1) {
// debugging enabled
} else {
//;debugging does not enabled
}
Post a Comment for "How To Check Usb Debugging Enabled Programmatically?"