Using Google Maps location without Activity

后端 未结 1 1018
南旧
南旧 2020-12-10 23:05

I have a service which receives locations through registering a LocationManager.requestLocationUpdates. But there have been some issues on some phones.

<
相关标签:
1条回答
  • 2020-12-10 23:29

    Given some extensive testing from a reliable source, I believe that you might want to consider using the FusedLocationProvider supplied with Google Play Services. It seems to take the headache out of choosing the appropriate power criteria and so on.

    Be aware that this will require that the user must have Google Play installed on their device, so Kindles and the like will be out of the picture. It also requires a minimum of Android 2.2.

    Some more information about the location services provided by Google Play Services can be found here.

    0 讨论(0)
提交回复
热议问题