首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

为什么用network获取位置信息时会报错这个错?解决方案

2012-02-29 
为什么用network获取位置信息时会报错这个错?12-29 11:46:33.304: ERROR/LocationManagerService(1208): g

为什么用network获取位置信息时会报错这个错?
12-29 11:46:33.304: ERROR/LocationManagerService(1208): getLastKnownLocation got exception:
12-29 11:46:33.304: ERROR/LocationManagerService(1208): java.lang.IllegalArgumentException: provider=network
12-29 11:46:33.304: ERROR/LocationManagerService(1208): at com.android.server.LocationManagerService._getLastKnownLocationLocked(LocationManagerService.java:1408)
12-29 11:46:33.304: ERROR/LocationManagerService(1208): at com.android.server.LocationManagerService.getLastKnownLocation(LocationManagerService.java:1393)
12-29 11:46:33.304: ERROR/LocationManagerService(1208): at android.location.ILocationManager$Stub.onTransact(ILocationManager.java:247)
12-29 11:46:33.304: ERROR/LocationManagerService(1208): at android.os.Binder.execTransact(Binder.java:287)
12-29 11:46:33.304: ERROR/LocationManagerService(1208): at dalvik.system.NativeStart.run(Native Method)

[解决办法]
12-29 11:46:33.304: ERROR/LocationManagerService(1208): java.lang.IllegalArgumentException: provider=network

一般是参数错误,检查一下

热点排行