Hello,

my app forwards MotionEvents, reported by
GestureDetector.OnGestureListener, to a worker thread.
Right now i am doing it by calling MotionEvent.obtain, pass the
obtained copy to the worker thread, handle it and recycle it at the
worker thread.
Is it required to obtain and recycle a MotionEvent if it is passed to
another thread? Or could it safely be skiped?
If i am making things overly complicated, could you please explain me
at which conditions MotionEvent.obtain is usually called?

Thanks,
Mike.

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