Android swipe gesture implementation

I was looking for a simple solution how to swipe screens left and right.
I found some on this page “Android Gestures

It is so simple, that I do want to show it here. But I needed change a little code for my needs and Eclipse asked two times to remove “@Override” option.

First, create SimpleGestureFilter class in your projest:

then implement Gesture Listener in your code. In my case it looked as following: