How to make android aplication run every hour
-
21-06-2021 - |
Domanda
Hello, i'm try to make an auto run application in android,
Example : App to read call log
My app runs in background and it runs once in an hour to get all call log from past one hour.
Can anyone help me to built an application like that?
Thanks for answers
Soluzione
Use AlarmManager
.
code here: How to execute one task every hour?
and here: AlarmManager - How to repeat an alarm at the top of every hour?
AlarmManager - How to repeat an alarm at the top of every hour?
Altri suggerimenti
Android's AlarmManager can perform the job you want to do.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow