使用LocationServices检查GPS是否已打开,而不是使用LocationManager?

时间:2015-01-25 14:44:43

标签: android android-fragments google-play-services location-services

有没有办法检查gps是否使用LocationServices而不是使用LocationManager来关闭?

我正在使用LocationServices和GoogleApiClient并试图找出我们可以用来检查gps是否已开启的方法。

我想在不使用LocationManager的情况下解决问题,如果可以找到GPS源而不是混合了LocationServices似乎做的所有事情?如果我误会,请纠正我。

1 个答案:

答案 0 :(得分:1)

LocationServices是位于位置之上的服务,例如Fuse,Geofencing等。它们构建在LocationManager之上

您想检查GPS的状态,可以使用LocationManager完成,就像您现在所做的那样。

喜欢那样: How do I find out if the GPS of an Android device is enabled