In WifiManager have the possibilities to enable/disable the WiFi state while app running like wifiManager.SetWifiEnabled(true);
So I need to do this same for Mobile Data, How is it possible?
Mobile data can not be enabled/disabled programmatically in android since android 4.4. The support to enable/disable mobile data from apps stopped due to security reasons.
So what you can do is showing message box to user asking the user to enable/disable the mobile data. You can also redirect to settings page from the app where user can enable/disable data. And once back to the app from settings, check for internet status and work accordingly.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies