I see - that is good to know. Is that documented somewhere? It should
be ;)
I saw the code in GestureDetector and in onTouchEvent()
mListener.onFling() is called which seems correct. I am not sure where
the disconnect is then.

Rohit


On Oct 30, 5:11 pm, Romain Guy <[EMAIL PROTECTED]> wrote:
> Fling works perfectly in the emulator. It is also normal for onDown()
> to be invoked. A fling is simply an onDown() followed by several
> ACTION_MOVE MotionEvent then an onUp().
>
>
>
> On Thu, Oct 30, 2008 at 4:18 PM, Rohit Mordani <[EMAIL PROTECTED]> wrote:
>
> > I am facing the same problem. The onFling() method is never called.
>
> > I THINK the problem is that in the emulator, pressing the left mouse
> > button is more like a tap and that sets the MotionEvent.Action to be
> > ACTION_DOWN. As a result the onDown() method of the OnGestureListener
> > is called instead of onFling(). There might be a way to emulate the
> > fling in the emulator but I am not sure of it. If anyone finds out
> > then please let me know. That would then call onFling() correctly I
> > think
>
> > Rohit
>
> > On Oct 29, 2:12 pm, zl25drexel <[EMAIL PROTECTED]> wrote:
> >> Erik,
>
> >> I tried your codes, the onScroll and onFling method are still not
> >> being called.
>
> >> On Oct 11, 7:10 pm, Erik Calissendorff <[EMAIL PROTECTED]>
> >> wrote:
>
> >> > Hi Kingtut,
>
> >> > I believe that this code should work for you, I use this solution in
> >> > my Activity:
>
> >> > @Override
> >> > public boolean dispatchTouchEvent(MotionEvent ev) {
> >> >   boolean returnValue=false;
> >> >   returnValue=returnValue | mGestureDetector.onTouchEvent(ev);
> >> >   returnValue=returnValue | super.dispatchTouchEvent(ev);
> >> >   return returnValue;
>
> >> > }
>
> >> > Good luck with the development.
>
> --
> Romain Guywww.curious-creature.org
--~--~---------~--~----~------------~-------~--~----~
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