If you send it to a handler, the handler/looper will recycle it for you. On Wed, Nov 25, 2009 at 4:20 AM, edovino <ed...@cadwal.org> wrote:
> Maybe I'm reading the documentation wrong - but if I call > Message.obtain(), shouldn't i call Message.release() when my Handler > is done with it? > Thing is, Message.release() always causes a > android.util.AndroidRuntimeException (in a process outside my own > application!) > > 11-25 13:05:19.364: ERROR/AndroidRuntime(1249): > android.util.AndroidRuntimeException: { what=1000 when=5798286 } This > message is already in use. > > What's the correct pattern for Message.obtain()/recycle() use? > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@android.com 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 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