Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open wireless settings from app

I want to open the Settings-> Wireless & networks directly from my application.

How can I do that?

like image 867
Dennis Gimbergsson Avatar asked Sep 17 '11 11:09

Dennis Gimbergsson


People also ask

How do I open wireless settings?

Click Start, Settings, Network & Internet, and then select the Wi-Fi entry on the left list. Click the Advanced options entry below the last wireless network in the list. The wireless network's Properties will be listed at the bottom of the Wireless Network Connection page.


1 Answers

Try this:

startActivity(new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS)); 

Or perhaps startActivityForResult. Your call. You can open different settings by checking the constants in Settings

like image 76
David Olsson Avatar answered Sep 21 '22 19:09

David Olsson