1

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?

Rohit Singh
  • 16,950
  • 7
  • 90
  • 88
Arlind Hajredinaj
  • 8,380
  • 3
  • 30
  • 45

1 Answers1

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