当我们尝试以下操作时,我在code.google.com上看到方法 getLocationUpdate() 中存在错误:
requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000L, 500.0f, this);
它抛出:
09-06 22:46:16.163: ERROR/AndroidRuntime(351): Caused by: java.lang.IllegalArgumentException: provider=network
09-06 22:46:16.163: ERROR/AndroidRuntime(351): at android.os.Parcel.readException(Parcel.java:1325)
09-06 22:46:16.163: ERROR/AndroidRuntime(351): at android.os.Parcel.readException(Parcel.java:1275)
09-06 22:46:16.163: ERROR/AndroidRuntime(351): at android.location.ILocationManager$Stub$Proxy.requestLocationUpdates(ILocationManager.java:646)
09-06 22:46:16.163: ERROR/AndroidRuntime(351): at android.location.LocationManager._requestLocationUpdates(LocationManager.java:582)
09-06 22:46:16.163: ERROR/AndroidRuntime(351): at android.location.LocationManager.requestLocationUpdates(LocationManager.java:446)
这是链接:http ://code.google.com/p/android/issues/detail?id=19857
我想知道这是否已修复。我的应用程序每次尝试获取位置更新时都会崩溃。