Which API gives a fresh high-accuracy location fix in the lab?
- Geocoder.getFromLocationName()
- FusedLocationProviderClient.getCurrentLocation()
- LocationManager.getLastKnownLocation only
- ConnectivityManager
Answer
B) FusedLocationProviderClient.getCurrentLocation()
The fused provider returns the current location.
Computer Science MCQ · More Lab: Campus Feedback App (Mini Project) MCQs · Practise