我的 Android 和 Java 技能不那么火爆……
在 Geocoder 的 developer.android.com 页面中,它说:
如果平台中没有后端服务,Geocoder 查询方法将返回一个空列表。使用 isPresent() 方法确定是否存在 Geocoder 实现。
但是,当我尝试打电话时,例如:
if (Geocoder.isPresent()) {...
日食告诉我
对于 Geocoder 类型,方法 isPresent() 未定义
我怎样才能“使用 isPresent() 方法”?