To process simple touch events in an app, override View method onTouchEvent, then use constants from class ________ (package android.view) to test which type of event occurred and process it accordingly.

a. Event
b. MotionEvent
c. Motion
d. View

b. MotionEvent

Computer Science & Information Technology

You might also like to view...

When creating a presentation, the first item to focus on is the content

Indicate whether the statement is true or false

Computer Science & Information Technology

If a member function of a class already provides all or part of the functionality required by a constructor or another member function then:

a. Copy and paste that member function’s code into this constructor or member function. b. Call that member function from this constructor or member function. c. That member function is unnecessary. d. This constructor or member function is unnecessary.

Computer Science & Information Technology