上一篇文章 【Android笔记 二】Location获取地理位置信息(上)介绍了简单的地理位置服务的使用,今天这篇文章给大家分享以下Criteria类的使用
注意在locationManager中还有一个重要的方法就是getBestProvider()
------------------------------------------------------------------------------------------------------------------------------------------------
public String getBestProvider (Criteria criteria, boolean enabledOnly)
Since: API Level 1
Returns the name of the provider that best meets the given criteria. Only providers that are permitted to be accessed by the calling activity will be returned.