Sub Button1_Click
Dim enabled As Boolean = jo.RunMethod("isUsbDebuggingEnabled",Null)
MsgboxAsync("Débogage USB activé: " & enabled, "")
End Sub
#if Java
import android.provider.Settings;
import android.content.ContentResolver;
public boolean isUsbDebuggingEnabled() {
if (Settings.Global.getInt(getContentResolver(), Settings.Global.ADB_ENABLED, 0) == 1)
return true;
else
return false;
}
#End If