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 ...

Get Android™ How to Program, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.