Activity Action to access WiFi Direct settings

432 views Asked by At

I want to know how can I access WiFi Direct settings in the phone through my application.

Settings.ACTION_WIFI_SETTINGS

Settings.ACTION_WIFI_IP_SETTINGS

above actions will get me to WiFi settings and WiFi Advanced/IP settings respectively. Similarly is there an activity action to reach WiFi Direct settings? or any other way to do that?

Thanks in advance :)

1

There are 1 answers

0
Rayyan On

Try this code, This will access to wireless setting , will contain wifi direct.

           startActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS));