title: Android Polling from a Server periodically
body: <p>I want to pull some data from a server every x minutes. IF the info contains certain information I would like to create a notification. I want this polling to happen even when the app is in the background, or the phone is asleep. I have a few questions about polling in android.</p>
  
  <ul>
  <li><p>What is the best way to go about doing it? Should I use an<br>
  IntentService, an AlarmManager, something else?</p></li>
  <li><p>How often should I be polling the data? I would like to keep it
  relatively often, say under every 10 minutes.</p></li>
  </ul>