What permissions does my app need to connect to a WiFi or change the current connected WiFi?
I've been trying the answers in the following StackOverflow link How do I connect to a specific Wi-Fi network in Android programmatically?
Asked
Active
Viewed 1,642 times
1

Rohit Singh
- 16,950
- 7
- 90
- 88

Arlind Hajredinaj
- 8,380
- 3
- 30
- 45
1 Answers
1
If you want to connect to a wifi network from within the app rather than relying on user interaction, you should need the following permissions:
android.permission.INTERNET
android.permission.ACCESS_NETWORK_STATE
android.permission.CHANGE_WIFI_STATE
android.permission.ACCESS_WIFI_STATE

fractalwrench
- 4,028
- 7
- 33
- 49
-
I was missing the android.permission.CHANGE_WIFI_STATE thank you – Arlind Hajredinaj Aug 06 '15 at 09:46