How do I use Android's Handler.PostDelayed to make an event happen at a specified time?
<p>I want to have my application execute code at a point in the future.</p>

<p>I want to do:</p>

<pre><code>    Date now = new Date();

    for (Date beep : scheduledBeeps) {
        if (beep.after(now))
        {
            Logger.i("adding beep");
            m_beepTimer.postAtTime(beepNow, beep.getTime());
        }
    }
</code></pre>

<p>In the log I can see 4 beeps added, however they never fire. I'm assuming it has something to do with <a href="http://developer.android.com/reference/android/os/SystemClock.html#uptimeMillis%28%29" rel="nofollow">uptimeMillis</a>, but I'm not sure what to do.</p>
