It is necessary to implement this ..

The Spinner has the following values: 30 minutes, 1 hour, 2 hours, 4 hours.

When selecting, it is necessary to allow 1 hour for the application to record the current time on the device and exactly one hour after that it would do something, say, turn off playback. In general, a timer is needed. How to implement such a way to dig?

  • Dig into the side of the alarm manager and Broadcast receivers - iamthevoid
  • Thanks I will watch ... - Kolhoznik
  • Well, either you can try to implement through Services - Nick
  • Honestly, there was no time to even read about Broadcast even properly. And which method is preferable in my case? - Kolhoznik
  • I read articles about planners and a question arose. And why is it that I need to do with Timer and TimerTask? No one suggested using them. - Kolhoznik

0