0
Q
倒計時
A
回答
0
這很簡單。您必須在後臺使用Service
開始此任務。要延遲您可以使用AlarmManager。 Here is example
或處理
新的處理程序()。postDelayed(新的Runnable(){
public void run() { Intent intent = new Intent("INTENT_WAKEUP_B"); intent.putExtra("EXTRA_MESSAGE",message); sendBroadcast(intent); } }, timeToWait * 1000); // * 1000 if timeToWait is in seconds
1
使用AlarmManager安排事件在將來某個時間運行。
相關問題
- 1. jQuery倒計時 - 每日倒計時,還有次要倒計時?
- 2. JQuery倒計時器不倒計時
- 3. Js倒計時只倒計時一次
- 4. C#timer_Tick()倒計時2步倒計時
- 5. jQuery倒計時不正確倒計時
- 6. 倒計時 - iPhone倒數計時器
- 7. 修復倒計時倒數計時器
- 8. JS倒計時不倒計時
- 9. 倒計時倒檔副
- 10. 循環倒數倒計時
- 11. Vb.net倒計時
- 12. Scanf倒計時
- 13. 倒計時
- 14. 倒計時Javascript
- 15. 倒計時器
- 16. AppleScript倒計時
- 17. C#倒計時
- 18. 倒計時
- 19. 倒計時Laravel
- 20. 秒倒計時
- 21. 倒計時jquery
- 22. android倒計時
- 23. ReactiveCocoa倒計時
- 24. 從倒計時
- 25. jQuery倒計時
- 26. 倒計時計時器android
- 27. 倒計時計時器
- 28. 實時倒計時
- 29. jQuery倒計時 - 倒計時結束時的事件
- 30. 數組計數倒計時
如果answear是有幫助的,解決你的問題,接受問題 – Serafins