2
的代碼是這樣的:當兩個locationManager對象調用requestLocationUpdates(...)時?
private LocationManager locationManager1;
private LocationManager locationManager2;
......
locationManager1 =(LocationManager)getSystemService(Context.LOCATION_SERVICE);
locationManager2 =(LocationManager)getSystemService(Context.LOCATION_SERVICE);
....
locationManager1.requestLocationUpdates("GPS",30000, 0, LbsClient2ServerDemo.this);
locationManager2.requestLocationUpdates("GPS",0, 0, LbsClient2ServerDemo.this);
......
當兩個物體的LocationManager打電話requestLocationUpdates(...)
, locationManager1和locationManager2具備GPS提供商。
locationManager1對象正在搜索衛星,但是locationManager2即將到來,locationManager2.requestLocationUpdates()是否會中斷locationManager1?也許會導致GPS定位更慢?