This topic created in 4235 days ago, the information mentioned may be changed or developed.
跟着 Google 官方培训教程来到“获取地理位置”这一章,里面讲使用 Google Play Service APIs 获取地理位置,而据所知,国内的 Android 手机都没有安装 Google Play Service,而提示“Get Google Play service” 估计没多少用户会响应,那么,问题来了:
在国内手机上要获取 location 信息的话,现在一般情况是如何操作的?
7 replies • 2014-11-14 10:28:42 +08:00
 |
|
1
pubby Oct 21, 2014 1
最省事的,百度定位sdk
自己去gps/network上取位置信息,正常设备还好,碰上些奇葩设备能折腾死你。
|
 |
|
4
cst4you Oct 21, 2014
在国内还是baidu吧, google 定位已死
|
 |
|
5
Part Oct 21, 2014
好吧,看来只能 baidu 了。
|
 |
|
7
houfukude Nov 14, 2014 1
只要 Location么? 可以自己写一个方法 通过 LocationManager 注册两个监听 GPS定位信息 mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, LOCATION_INTERVAL, LOCATION_DISTANCE, mLocationListener); NetWork定位信息 mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, LOCATION_INTERVAL, LOCATION_DISTANCE, mLocationListener); 然后在LocationListener里面监听就好了,都不需要play service或者百度SDK
|