title: counter that increment every period even when app is killed
body: <p>If you think of stratigy game like red alert or clash of clans, there is always building you put on the map that would generate money (say certain $5 every 1 min).</p>
  
  <p>I am trying to do the same same in which a counter is incremented by 5 every 1 min. The way that comes to mind is by having a handler with postDelayed which calls itself every min and increment the money. The problem is that if the app is put in the background, it might get killed and the timer is no longer running.</p>
  
  <p>Would a better option be to have an alarmManager which is scheduled at certain intervals to send a broadcast message? I find it to be an overkill (" I think").</p>
  
  <p>How do games manage something like that?</p>
  
  <p>Thank you </p>