Android Location Strategy

橙三吉。 提交于 2019-12-13 10:55:26

问题


In Android What are the location determination strategies for

  1. Real-time GPS location determination (for user real-time user location tracking).
  2. Periodic GPS location determination (for periodic user location determination).
  3. For most accurate GPS location value.

I am trying to make mobile applications of type 1 and type 2. Please guide me regarding the same


回答1:


You can use Google Play Services API which is friendly and simple to use or GPS location API directly. Google Play Services API can return current user location or you can even subscribe to location updates. Take look official documentation.

Also there is not only GPS, but also mobile Network and Wi-Fi based location built in in Android. You can use all of them simultaneously thru FusedLocation provider to determine user location.

Location APIs

Location Strategies



来源:https://stackoverflow.com/questions/25780955/android-location-strategy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!