Is there a way to switch between mobile networks (UMTS -> GSM,...) by code? When possible without rooting the device. Thank you!
Asked
Active
Viewed 1,148 times
-2
-
Potential duplicate: http://stackoverflow.com/questions/12535101/how-can-i-turn-off-3g-data-programmatically-on-android – Timothée Bourguignon Mar 17 '16 at 08:51
-
This guy wants to enable and disable it. He does not want to change the network type. – xileb0 Mar 17 '16 at 09:00
-
Well disabling the UMTS Network would force your phone to switch onto GSM wouldn't it? – Timothée Bourguignon Mar 17 '16 at 09:08
-
Ok and what if I want to switch from GSM to LTE? – xileb0 Mar 17 '16 at 09:32
1 Answers
1
You can not switch between 2G, 3G or 4G, as there is no api available in the android telephony manager which allows you to do so.
If there is different wifi network available then you can switch between those.
I hope, I have answered your question.
Thanks,

Silvans Solanki
- 1,267
- 1
- 14
- 27