What is this error?

+2 Brendan Merna · January 8, 2016
Error:(17, 8) error: MainActivity is not abstract and does not override abstract method onLongPress(MotionEvent) in OnGestureListener

How do I fix this?

Post a Reply

Replies

Oldest  Newest  Rating
0 Gary Whitney · January 8, 2016
Line 17 column 8 of your Main Activity.
You need to declare your activity extends OnGestureListener if you want to use gestures.
See tutorials 21 and 22.
  • 1

Java / Android Development

106,912 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator