Thursday, July 7, 2011

[android-developers] EventQueue.peekMessage

Hi folks,

why there is no a way to poll or peek the message from the event queue?
I want it to implement the break for the routine running on the UI thread.
private void longRoutine() {
while (flag){
if (queue.peekMessage() != null) {
return;
}
<whatever the code is>
}
}

Or am I missing something and actually a way exists?

Thanks,
Andrei

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

No comments:

Post a Comment