我希望我的 LocationManager 先尝试获取 Fine_Location,然后如果不可用,则获取 Coarse_Location。可以为 Criteria Accuracy 属性设置这种类型的层次结构吗?
const string context = LocationService;
LocationManager locationManager = (LocationManager)GetSystemService(context);
Criteria criteria = new Criteria() { Accuracy = Accuracy.Fine | Accuracy.Coarse };
string provider = locationManager.GetBestProvider(criteria, true);