i just cant identify my problem
Your event will happen once immediately, then not again for a week (AlarmManager.INTERVAL_DAY * 7,
). Perhaps you did not wait a week.
Note that you do not need WakeLocker
here -- so long as all your work is in onReceive()
, the system will hold a WakeLock
for you. If you have work that will take more than a millisecond or so, you will not want to do that in onReceive()
, but in that case I would recommend WakefulBroadcastReceiver
or my WakefulIntentService
over rolling your own WakeLock
solution.