How to call Wi-Fi settings screen from my application using Android

android, wifi

Solution

Look at `android.provider.Settings` for a series of `Intent` actions you can use to launch various settings screens (e.g., `ACTION_WIFI_SETTINGS`).

EDIT: Add the coding line.

`startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));`

Problem

Normally I am getting Wi-Fi setting screen on the emulator by clicking on the `Settings > Wireless controls > wifi settings`. I need to go directly to the Wi-Fi settings screen from my program when pressing on the Wi-Fi button which I have created. Contacts, Call Logs we can handle by using Intent.setData(android.provider.contacts...........). Is there any way to open settings sub-menus/menu from an android program? Please give me advise or sample code on this.

Original source

Related problems