Incorrect. If you aren’t using WifiManager, you don’t need ACCESS_WIFI_STATE or location permissions. ConnectivityManager gives information to know the connection type with only ACCESS_NETWORK_STATE, which is granted automatically on install without prompting the user to allow.
And besides that, you should really be checking ConnectivityManager.isActiveNetworkMetered() instead of the connection type anyway, since the user could be on tethered wifi, for instance.
Incorrect. If you aren’t using
WifiManager
, you don’t needACCESS_WIFI_STATE
or location permissions. ConnectivityManager gives information to know the connection type with onlyACCESS_NETWORK_STATE
, which is granted automatically on install without prompting the user to allow.And besides that, you should really be checking
ConnectivityManager.isActiveNetworkMetered()
instead of the connection type anyway, since the user could be on tethered wifi, for instance.