tags:

views:

480

answers:

1

On Android settings, under Wireless controls->Mobile networks there is a setting "Use only 2G networks".

In the Android SDK reference, under android.telephony.TelephonyManager, there doesn't seem to be anything to control the network type.

What APIs does this setting actually call?

+3  A: 

It appears to call com.android.internal.telephony.Phone.setPreferredNetworkType(). Since it is "internal", it isn't available to applications via the SDK.

See:

http://android.git.kernel.org/?p=platform/packages/apps/Phone.git;a=blob;f=src/com/android/phone/Use2GOnlyCheckBoxPreference.java;hb=HEAD

Luke Dunstan
Thanks. Makes a lot more sense now.
Jeremy Simon