Self-Review Exercises
7.1 Fill in the blanks in each of the following statements:
a) You use the SensorManager to register the sensor changes that your app should receive and to specify the _________ that will handle those sensor-change events.
b) A Path object (package android.graphics) represents a geometric path consisting of line segments and _________.
c) You use the type of the touch event to determine whether the user has touched the screen, ________ or lifted a finger from the screen.
d) Use class SensorManager’s _________ method to stop listening for accelerometer events.
e) Override SensorEventListener method _________ to process accelerometer events.
f) Override Fragment method _________ to respond to the event when a Fragment is attached ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access