4
A
回答
1
setInexactRepeating在AlarmManager。它可以節省一些電池。
http://developer.android.com/reference/android/app/AlarmManager.html
相關問題
- 1. 安卓:IntentService不排隊正確
- 2. 開始一個IntentService
- 3. 安卓:使用一個IntentService與多個動作
- 4. IntentService:如何正確排隊?
- 5. getDefaultSharedPreferences和一個IntentService崩潰
- 6. 安卓,從IntentService的getLastLocation()
- 7. 從IntentService安裝APK EXTRA_RETURN_RESULT
- 8. 如何從另一個IntentService中的IntentService接收值?
- 9. 安排一個URL請求
- 10. 的Android如何排隊上IntentService
- 11. Android - 多次運行一個IntentService
- 12. 如何從WakefulBroadcastReceiver啓動一個IntentService
- 13. IntentService的onStartCommand(..)方法線程安全嗎?
- 14. 如何停止一個IntentService同時有很多IntentService正在運行
- 15. Android IntentService僅執行一次
- 16. 如何安排一個Process.Start在WPF
- 17. 從另一個層面安排更新
- 18. 在Linux上安排一個zenity消息
- 19. 安排一個固定費率的Callable
- 20. 可以安排一個Facebook questi0n嗎?
- 21. 在c#中安排一個事件?
- 22. 重新安排一個MySQL表
- 23. 重新安排SQL表,像一個unpivot
- 24. autohotkey腳本安排一個wmv
- 25. 安排一個多維數組
- 26. div的在一個盒子裏安排
- 27. 安排一個JavaScript對象,以CSV
- 28. 使用oozie安排一個scala文件?
- 29. XSLT:創建一個日程安排
- 30. 如何安排多個div並排,一個在另一個之下
會不會消耗電池?如果是這樣,我想知道是否只有當應用程序在前臺時才運行該服務。 – Gratzi 2011-01-06 14:50:42