skip to Main Content

Android Studio – Missing permission when trying to get current location using fusedLocationClient

Good afternoon! I'm trying to get geolocation using this official guide: link As written in the guide, I added this at the beginning of the class: private FusedLocationProviderClient fusedLocationClient; Also I added this code in onCreateView: fusedLocationClient = LocationServices.getFusedLocationProviderClient(getContext()); fusedLocationClient.getLastLocation()…

VIEW QUESTION
Back To Top
Search