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

   阅读
为什么用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

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