When in doubt, don't call Message.recycle().  It is just an optimization.
 The platform does this for you when it is done dispatching a message.

And yes: the platform does this for you when done dispatching a message, so
when you handler, you no longer own the message and should not touch that
object any more.

The error message means that a message has been recycled but is still being
used.

On Mon, Sep 20, 2010 at 4:49 PM, doug <[email protected]> wrote:

> Hello,
>
> When does a Message object get recycled?  Is calling Message.recycle()
> necessary?  What does the error "message is in use" mean?
>
> Thanks,
> doug
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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