LocationClient requestLocationUpdates我想實現的過程這裏解釋:https://developer.android.com/training/location/receive-location-updates.html用的PendingIntent
我想使用未在上述教訓解釋requestLocationUpdates()方法的變種的PendingIntent。
我遇到了兩個問題:
- 當我收到意圖時,它似乎沒有可用的額外功能。此外,沒有像Geofences(getTriggeringGeofences)或Activities(extractResult)這樣的Helper函數。我是否需要再次連接到位置客戶端並獲取onConnect的最後位置?這不是在IntentService中使用它的問題嗎?
- 無論我指定什麼間隔,我只收到一個即時意圖發送到我的IntentService,並且沒有其他意圖發送。這是不是完全支持?
在此先感謝。
發佈您正在使用的代碼 –