Thanks for the quick reply. I was mistaken in my original post. I am indeed getting ACTION_UP events as soon as my finger leaves the screen while I am dragging on the ADP1. Therefore, that is good enough to solve my problem. Strange that I am not getting ACTION_CANCEL as you said. My preference is to receive ACTION_UP events (as I am currently getting) when the finger leaves the screen, so great!
On Jan 3, 2:31 am, Romain Guy <romain...@android.com> wrote: > You should receive an ACTION_CANCEL if that happens. > > > > On Sun, Jan 3, 2010 at 12:27 AM, scastria <scastria...@gmail.com> wrote: > > I have a motion listener to detect finger down, finger drag, and > > finger up. I start my action at finger down and finish my action at > > finger up. When the action is finished, I store it in a stack for > > allowing undo. My problem is that if I don't get a finger up event, I > > can't finish my action to add it to the stack for undo. > > > How can I detect that the user's finger has left the screen? > > > I tried using the emulator to see if getEdgeFlags() ever returned > > anything useful, and the result was always 0. > > > Basically, if a finger leaves the screen, then nothing is touching the > > screen anymore and I would like to detect that as a finger up event. > > How can I do this? > > > -- > > 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 > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. 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