Why triggerAtTime in AlarmManager.setRepeating doesn't work
<pre><code>AlarmManager mgr=
      (AlarmManager)ctxt.getSystemService(Context.ALARM_SERVICE);
  Intent i=new Intent(ctxt, AlarmReceiver.class);
  PendingIntent pi=PendingIntent.getBroadcast(ctxt, 0, i, 0);
mgr.setRepeating(
  AlarmManager.ELAPSED_REALTIME_WAKEUP,
  System.currentTimeMillis() + 1000,
  1000, pi);
</code></pre>

<p>According to android doc </p>

<blockquote>
  <p>triggerAtMillis   time in milliseconds that the alarm should first go off, using the appropriate clock (depending on the alarm type).</p>
</blockquote>

<p>the action should start right after 1 second, but it never gets called, why?</p>
