title: How to use Android AlarmManager with small intervals like 1 minute?
body: <p>I want to make some external service monitor and be notified on problems as fast as possible.</p>
  
  <p>I tried to set up <code>AlarmManager</code> with 1-2 minutes interval, but it looks like it fires randomly every several minutes.</p>
  
  <p>Of course, I want to be safe from killing my background task by android, which would stop monitoring if I just use <code>Service</code>.</p>
  
  <p>Is it possible to use <code>AlarmManager</code> in small, accurate intervals?</p>
  
  <p>Which approaches are used in applications like Facebook, Gmail to notify about new messages?</p>
  
  <p>Would it be better to make <code>Service</code> with <code>startForeground</code> and partial <code>WakeLock</code>?</p>