Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
Highlighted
Developer
Posts: 136
Registered: ‎02-01-2009
My Device: Not Specified

Palybook + Dev Alpha Fling and Scroll gestures not working

i'm trying to detect the Fling and Scroll gestures in my Android application.

 

On both the BlackBerry devices the gesture are not getting detected.

 

my simple code

 

class Detector1 extends GestureDetector.SimpleOnGestureListener{
	@Override
	public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
			float velocityY) {
		sendMessage("onFling");
		return super.onFling(e1, e2, velocityX, velocityY);
	}
	
	@Override
	public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
			float distanceY) {
	sendMessage("onScroll");
		return super.onScroll(e1, e2, distanceX, distanceY);
	}
}