5
如果我添加this
爲LocationListener的兩倍如下如何從android中添加兩次的LocationManager中刪除LocationListener?
manager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,0,3,this);
manager.requestLocationUpdates(LocationManager.GPS_PROVIDER,0,3,this);
,那會是不夠的,只是刪除this
一次如下
manager.removeUpdates(this);
我可以像'onPause'或'onStop'那樣在任何地方調用這個方法嗎?或者我應該只在'onLocationChanged'方法上調用它'' – 2016-06-06 21:35:20