Open wireless settings from app

Dennis Gimbergsson picture Dennis Gimbergsson · Sep 17, 2011 · Viewed 43.8k times · Source

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

How can I do that?

Answer

David Olsson picture David Olsson · Sep 17, 2011

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