【发布时间】:2016-07-04 10:16:11
【问题描述】:
我正在尝试通过这段代码来反转 Geocode lat,long
Geocoder geocoder = new Geocoder(context, Locale.ENGLISH);
try {
List<Address> addresses = geocoder.getFromLocation(latitude, longitude, 1);
return addresses;
} catch (IOException e) {
Log.e("Error : Geocoder", "Impossible to connect to Geocoder", e);
}
它适用于除华为以外的所有设备。它在华为设备中出现异常。客户报告了他的华为设备,华为 Y625 在 kitkat 上运行。我在运行 kitkat 的华为 H30 上对其进行了测试,但它也无法正常工作。但是在所有其他经过测试的设备上运行,包括三星、Nexus 等。
任何帮助将不胜感激。
【问题讨论】:
-
什么是 logcat ?任何堆栈跟踪?
标签: java android reverse-geocoding huawei-mobile-services