On Tue, Feb 8, 2011 at 2:36 PM, goosedroid <[email protected]> wrote:

> Is there a way to tell a Handler/Looper to enqueue messages sent to
> it without calling handleMessage() right away?
>
> I need the messages to collect in the MessageQueue. postMessageDelayed() is
> not applicable to my situation.
>
> Of course, it would need to be resumed again. All the queued messages would
> need to be handled at that point.
>

Implement Handler subclass with pause() and resume() methods. When paused,
handleMessage() puts each message in a queue. When not, it just handles the
messages as normal. When resume() is called, process the queued messages.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to