在此code我请求GPS位置更新
In this code I request location updates from GPS
locMan.requestLocationUpdates(LocationManager.GPS_PROVIDER,20000, 1, gpsListener);
但我怎么能确定它监听WiFi或手机ID更新呢?
But how can I make sure it listens for Wifi or Cell ID updates too?
您应该能够调用 requestLocationUpdates()
,具有鲜明的 LocationListener的
对象,其他的供应商。
You should be able to call requestLocationUpdates()
, with distinct LocationListener
objects, for the other providers.