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.