androidnetwork-programmingcarrier

Change network selection mode programmatically


I'm trying (wondering if it's even possible) to write an app, that would change the network selection mode automatically, based on some criteria. E.g. change the network operator from Vodafone to T-Mobile (assuming that the SIM card registration will succeed, but I'm not worried about it atm)

Unfortunately, I can't seem to find any way in the API to do it. Anyone has any idea? I assume, since it's not in the public APIs, there might still be a way to do it, if the phone is rooted. Is that true? If so, where should I look?

Thanks in advance


Solution

  • Sorry but you can't.

    You can have a look into the TelephonyManager .

    You can know the current operator: getSimOperator(Name) / getNetworkOperator(Name).

    You can also check this thread saying "I learn that for the sake of security there aren't any public APIs to manage this so the only option is to send the user to the system PreferenceScreen within my app."