title: Repeated Background Query while app is running
body: <p>I find stackoverflow incredibly useful, but this time I cannot find an exact answer: I am afraid to pick up the wrong solution for my case.</p>
  
  <p>I am creating an app that manage restaurant reservations.</p>
  
  <p>When logged as a restaurant I'd like to have the possibility to call in the backgroud a query (that for sure I already have) periodically, that returns the number of new Reservation Inserts in the mysql db and update the notifications in my action bar (that I already have implemented).</p>
  
  <p>I was going for Handler, or IntentService, or Service, but each time I've found some pro and cons and I really am stucked.</p>
  
  <p>I would like to have this query running each 1-2-3 minutes (no important) only when the app is running, and the simple result of this query (just the number of new reservations) as an output to handle, in order to show it in my action bar.</p>
  
  <p>Thanks to everybody</p>
  
  <p>Matteo</p>