Android之用户定位(User Location)二

来源:互联网 发布:淘宝关键词网站 编辑:程序博客网 时间:2024/05/21 07:53

查询最好的Location Provider

android.location.Cretiria

Cretiria可以设置一系列的查询条件,查询符合条件的Location Provider

用Cretiria里面的方法来设置Location Provider的要求

然后再通过LocationManager.getBestProvider()方法加入Cretiria参数就会得到最好的用户定位提供者。。。。

 

原创粉丝点击