Walt Armour
Thu, 04 Feb 2010 10:21:14 -0800
Finally found the time to dig into the source.
Based on this snippet in core/java/android/os/Handler.java :
/**
* Handle system messages here.
*/
public void dispatchMessage(Message msg) {
if (msg.callback != null) {
handleCallback(msg);
} else {
if (mCallback != null) {
if (mCallback.handleMessage(msg)) {
return;
}
}
handleMessage(msg);
}
}
handleMessage() should return true if the message was handled. This
will prevent any additional handling of the message.
On Jan 21, 10:55 am, Walt Armour <waltarm...@gmail.com> wrote:
> Handler.Callback.handleMessage() returns a boolean (as opposed to
> Handler.handleMessage() which is a void method).
>
> I cannot find any documentation of what the correct return value
> should be. Should the method return true or false if the message was
> handled?
--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en