Hey Adam and Jason - thanks ! I tried out the things that you guys said and they make fling / swipe work now !
Rohit On Oct 31, 12:59 pm, "Jason Parekh" <[EMAIL PROTECTED]> wrote: > If you haven't already, can you try returning true in your onDown method? > > jason > > 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. > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---