推 sdyy:重開機沒重設? 05/06 18:06
我有開 boot 的 receiver 了 應該沒有問題
且手機也沒有重開機
※ 編輯: sorkayi (163.29.208.2), 05/06/2014 19:19:42
#1ByBycco (DSLR) [ptt.cc] [作品] 台灣山
→ sorkayi :白目 05/17 14:52
D.罵人白目違反 3-4 人身攻擊相關規定,sorkayi 警告一次。
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.252.20.129
※ 文章網址: http://www.ptt.cc/bbs/AndroidDev/M.1399345890.A.B9B.html
板上各位大大好
最近寫了一個鬧鐘 app 這幾天都有正常的 work
是利用到 AlarmManager setrepeating 方法去做每日的喚醒
但是今天突然就沒有收到 broadcast
所以鬧鐘就沒有正常的叫了
不知道是那裡出問題了才上來問看看各位大大們有沒有遇過
在 boradcast receiver 的地方我寫 log 會寫到 SD card
今天就沒有收到 5/6 的 broadcast
在 time change 也有寫到 receiver 去 update AlarmManager repeating
boot receiver 也有寫到 update AlarmManager repeating
不知道是什麼地方突然出問題了
Intent intent = new Intent();
intent.setClass(MyAlarmListViewController.this, AlarmReceiver.class);
PendingIntent pi = PendingIntent.getBroadcast(this,
alarm.mId,
intent,
PendingIntent.FLAG_ONE_SHOT);
if (alarm.mIsEnable != 0) {
alarmMgr.setRepeating(AlarmManager.RTC_WAKEUP,
currentMills + alertMillis,
AlarmManager.INTERVAL_DAY, // repeat for next days
pi);
感謝各位大大了
--
公告
D.