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 <[email protected]> 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 [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