title: Run service when the application the is idle (screen is off) on Android
body: <p>I would like to run a service on background when the phone is idle (the screen is off). How can I do it?
  Could you give me an example or a reference to a website?
  Thank you.</p>