WSDOT / wsdot-android-app

Source code for the WSDOT Android application
GNU General Public License v3.0
19 stars 12 forks source link

SecurityException being thrown in TrafficMapActivity and VesselWatchMapActivity #19

Closed waynedyck closed 8 years ago

waynedyck commented 8 years ago
java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.

Checking the state of "Location" in "Settings > Apps > WSDOT > Permissions" will usually show it is disabled.

Beginning in Android 6.0 (API level 23), users grant permissions to apps while the app is running, not when they install the app. See Requesting Permissions at Run Time for more information.

waynedyck commented 8 years ago

Turns out once you have published an app at one API level you cannot roll it back to a previous one like I attempted to do with commit a2d498414c1ce5a0a87b434d6b1494187e76383e.

Reopening issue as I will have to implement the actual code necessary to check for the required permissions.