在Android的4.0和放大器;调用上述
In android 4.0 & above a call to
LocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,0,0,侦听)
LocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, listener)
是给例外,因为
产生的原因:java.lang.IllegalArgumentException异常:供应商=网络
Caused by: java.lang.IllegalArgumentException: provider=network.
即使网络被启用,则发生相同的异常。
Even if the network is enabled, the same exception occurs.
我知道这是一个报告的问题。(HTTP://$c$c.google.com/p/android/issues/detail ID = 19857)
I know this is a reported issue (http://code.google.com/p/android/issues/detail?id=19857).
我的问题是。
如何获得由网络提供商或安卓4.0及放任何其它方法(GPS)位置;以上?
还有就是Android 4.0的框架,一个悬而未决的问题,使网络供应商不工作,但最新的Android版本中,它已经解决了,成功的工作,请检查您的code。在最新的Android框架。
There is a open issue of android 4.0 framework , so network provider is not working but latest android version it had resolved and successful working ,Please check your code in latest android framework.