Reputation: 45
Is there anything about, setting alarmmanager activate only ones?
setRepeating ();
How to set this activate only ones?
Upvotes: 0
Views: 178
Reputation: 69
if you want to activate the AlarmManager
only once, you should use:
set(int type, long triggerAtMillis, PendingIntent operation);
instead of:
setRepeating(int type, long triggerAtMillis,
long intervalMillis, PendingIntent operation);
Upvotes: 0
Reputation: 733
If you don't want the alarm to repeat, don't include the code
setRepeating();
Upvotes: 3