1
我需要当前位置的用户在我的应用程序基于该位置我将搜索数据库!想要在android活动中获得用户的当前位置
我通过使用示例代码给出了当前位置,但它不准确。如果没有GPS,我会通过网络提供商获取位置信息,但它会在相同位置显示某个时间的2个位置名称。如果它在2分钟前1分钟之前显示一个名称,它将更改为另一个位置。
此代码是外观,但不知道如何使用它。请在这方面帮助我!
What is the simplest and most robust way to get the user's current location on Android?
我需要的位置名称。
你可以参考我的任何好的教程! – 2011-05-15 00:41:16
请在此处查看开发指南:http://developer.android.com/guide/topics/location/obtaining-user-location.html#BestEstimate – Aleadam 2011-05-15 00:59:08
另请参阅:http://stackoverflow.com/questions/5535561/network-提供定位精度,问题式,机器人 – Aleadam 2011-05-15 01:01:40