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

Reply via email to