-2

I want to create Alarm Service that run with mobile clock interval. For example if mobile time is 20:30:00, Alarm Service repeats, and if time is 20:30:45, Alarm wait and starts from 20:31:00 (what time is not important) and continue on every minutes.

aydinugur
  • 1,208
  • 2
  • 14
  • 21
Saeed s
  • 33
  • 3
  • 11

1 Answers1

0
alarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,
                          SystemClock.currentTimeMillis,
                          1*60*1000, 
                          pendingIntent);

More details can be found here

Arun Shankar
  • 2,295
  • 16
  • 20