Locationmanager.locationListener 和 com.google.android.gms.location.LocationListener 有什么区别?
what is the difference between Locationmanager.locationListener and com.google.android.gms.location.LocationListener?
我在 android 项目的单个 Activity 上发现了两个 locationListener 的实现。有什么区别?。
一个androidphone可能不支持com.google.android.gms.location.LocationListener但支持Locationmanager.locationListener
这是因为有两种完全不同的方法可以做到这一点。第一个是使用来自 android.location.LocationListener 的 Android API,第二个是使用 Google Play 服务 API com.google.android.gms.location.LocationListener .
Here is the complete overview!
我在 android 项目的单个 Activity 上发现了两个 locationListener 的实现。有什么区别?。
一个androidphone可能不支持com.google.android.gms.location.LocationListener但支持Locationmanager.locationListener
这是因为有两种完全不同的方法可以做到这一点。第一个是使用来自 android.location.LocationListener 的 Android API,第二个是使用 Google Play 服务 API com.google.android.gms.location.LocationListener .
Here is the complete overview!