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.
Asked
Active
Viewed 142 times
1 Answers
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
-
i test it. it not works and start with mobile minute time – Saeed s Jun 21 '17 at 02:45