Get to now 2G enabled or not : Android | Techbirds
Hi Folks, Refer this code for identifying your 2G network enabled or not. int enabled = Settings.Secure.getInt(getContentResolver(), “preferred_network_mode”, -1); Log.d(“MYAPP”, “2G only enabled: ” + enabled); Where the “use only 2G networks” setting is specified as: 0 indicates the setting is disabled 1 indicates the setting is enabled -1 indicates the setting is not set