2012-09-29 27 views

回答

1

沒有這樣的方法。對於LocationListener風味requestLocationUpdates(),這是很容易爲你自己跟蹤它:

第1步:數據成員添加到某個類,boolean型,命名爲areLocationUpdatesEnabled,最初設置爲false的。

步驟#2:當您撥打requestLocationUpdates()時,請將areLocationUpdatesEnabled設置爲true

步驟#3:當您撥打removeUpdates()時,請將areLocationUpdatesEnabled設置爲false

步驟#4(可選):執行areLocationUpdatesEnabled()作爲返回值areLocationUpdatesEnabled的方法。

相關問題