I am actually trying to bring up Wireless & Networks setting page using am start.
I tried all possible ways to do this and am able to open Settings page and Mobile operator settings page. But not the Wireless and Networks page (which contains VPN, Airplane Mode, Mobile Networks, etc..).
The way I tried opening Network operators page is as below:
adb shell am start -a android.settings.WIRELESS_SETTINGS -n com.android.phone/.NetworkSetting
Could any one help to open Wireless & Network setting page in a similar way?
Thanks in advance Rahul
Use:
adb shell am start -a android.settings.WIRELESS_SETTINGS
Edit: To achive same result from code you can send broadcast intent:
Intent i = new Intent("android.settings.WIRELESS_SETTINGS");
mContext.sendBroadcast(i);
Edit2: Here is the command to start it using activity name:
adb shell am start -n 'com.android.settings/.Settings\$WirelessSettingsActivity'
Depending on environment the symbol $ may or may not be escaped (remove \ before if it does not works).