Which API gives a fresh high-accuracy location fix in the lab?

  1. Geocoder.getFromLocationName()
  2. FusedLocationProviderClient.getCurrentLocation()
  3. LocationManager.getLastKnownLocation only
  4. ConnectivityManager
Answer

B) FusedLocationProviderClient.getCurrentLocation()

The fused provider returns the current location.

Computer Science MCQ · More Lab: Campus Feedback App (Mini Project) MCQs · Practise