Hello! Is there a (simple) possibility for turning the mobile network on/off with Java code? If so, for mobile service too? 'Cause I'd like to make an app which turns the network on and service off (or the opposite).
Thanks for help.
Hello! Is there a (simple) possibility for turning the mobile network on/off with Java code? If so, for mobile service too? 'Cause I'd like to make an app which turns the network on and service off (or the opposite).
Thanks for help.
The wireless network you can turn on by the following code:
WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
wifiManager.setWifiEnabled(true);