Android Question Oreo moble data toggle direct intent?

Jeffrey Cameron

Well-Known Member
Licensed User
Longtime User
I generally turn my mobile data off when I'm not at work if I'm not using my phone as I live an area with very spotty coverage and continually attempting to find a cell tower drains my S7 very quickly.

With the latest update to Oreo my phone no longer has a quick mobile data on/off button, I have to go Settings -> Connections -> Data usage -> Mobile Data -> (toggle here).

The closest intent I can find to that toggle button is this one:
B4X:
    Dim poInt As Intent
    poInt.Initialize("", "")
    poInt.SetComponent("com.android.settings/.Settings$DataUsageSummaryActivity")
    StartActivity(poInt)
Which gets me to the Data Usage screen. I've searched the Android API as best I can and I can't find an intent that takes me directly to the on/off toggle.

Does anyone know of an intent that will take you directly to the turn mobile data on/off toggle screen?
 
Top