H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User Oct 24, 2016 #1 Hi How can we connect/disconnect to 3g data programmatically ?
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2016 #2 Starting from Android 5+ it is not possible to change the mobile data setting programmatically. Upvote 0
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User Oct 25, 2016 #3 Ok Can we lunch the data enable/disable switcher programmatically ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2016 #4 Try this: B4X: Try Dim i As Intent i.Initialize("android.settings.DATA_ROAMING_SETTINGS", "") StartActivity(i) Catch Log(LastException) End Try There might be errors as this action is not supported by all devices. Upvote 0
Try this: B4X: Try Dim i As Intent i.Initialize("android.settings.DATA_ROAMING_SETTINGS", "") StartActivity(i) Catch Log(LastException) End Try There might be errors as this action is not supported by all devices.