0

i currently making an app that checking file change/modification on android SD memory.
this checking file process is running on a background service.. the thing is i don't want this service execute this process all the time
i want the process running on user specified time.
how to do this?

KevinL
  • 83
  • 2
  • 10

2 Answers2

1

You have to make you task run By the AlarmManager, see this question: AlarmManager Android Every Day

Community
  • 1
  • 1
Anis BEN NSIR
  • 2,555
  • 20
  • 29
0

You could handle this with the AlarmManager. See AlarmManager

This was successful in this post: Using Alarmmanager to start a service at specific time

Community
  • 1
  • 1
Jan Koester
  • 1,178
  • 12
  • 26