Search code examples
androidlocationgoogle-play-serviceslocationlistener

what is the difference between Locationmanager.locationListener and com.google.android.gms.location.LocationListener?


I found implementations of both locationListener on a single Activity of an android project. What are the differences?.


Solution

  • it's because there are two totally different ways you can do it. The first is using Android APIs from android.location.LocationListener, and the second is using Google Play Services APIs com.google.android.gms.location.LocationListener.
    Here is the complete overview!