I want to launch mobile network settings screen, so that user can enable/disable 3g or data connection. Can anybody tell me which intent I need to use for starting activity.
Intent in = new Intent(android.provider.Settings.ACTION_NETWORK_OPERATOR_SETTINGS )
Intent in = new Intent(android.provider.Settings.ACTION_DATA_ROAMING_SETTINGS ).
They won't work because there was a bug that was fixed I think in 2.3.
You can bypass this using (for NETWORK_OPERATOR_SETTINGS)
Intent intent = new Intent(Intent.ACTION_MAIN); intent.setClassName("com.android.phone", "com.android.phone.NetworkSetting"); startActivity(intent);
Settings for DATA_ROAMING_SETTINGS
there's another similar solution described in Error opening mobile network settings menu
I recently tested this and it seems that this workaround is still necessary up to API level 15. Since API level 16 the intents in the question seem to work correctly.