Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/234.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Locationmanager.locationListener和com.google.android.gms.location.locationListener之间有什么区别?_Android_Location_Google Play Services_Locationlistener - Fatal编程技术网

Locationmanager.locationListener和com.google.android.gms.location.locationListener之间有什么区别?

Locationmanager.locationListener和com.google.android.gms.location.locationListener之间有什么区别?,android,location,google-play-services,locationlistener,Android,Location,Google Play Services,Locationlistener,我在一个android项目的单个活动中发现了两个locationListener的实现。有什么区别 一部android手机可能不支持com.google.android.gms.location.LocationListener,但支持Locationmanager.LocationListener这是因为有两种完全不同的方法可以做到这一点。第一种是使用Android.location.LocationListener中的Android API,第二种是使用Google Play Service

我在一个android项目的单个活动中发现了两个locationListener的实现。有什么区别

一部android手机可能不支持com.google.android.gms.location.LocationListener,但支持Locationmanager.LocationListener

这是因为有两种完全不同的方法可以做到这一点。第一种是使用Android.location.LocationListener中的Android API,第二种是使用Google Play Services APIcom.Google.Android.gms.location.LocationListener
!