Exercises

  1. 5.3 Fill in the blanks in each of the following statements:

    1. Most Android devices have a(n)               that allows apps to detect movement.

    2. Override Fragment method               to respond to the event when a Fragment is removed from a parent Activity.

    3. The               monitors the accelerometer to detect device movement.

    4. SensorManager’s               constant represents the acceleration due to gravity on earth.

    5. You register to receive accelerometer events with SensorManager method registerListener, which receives: the SensorEventListener that responds to the events, a Sensor representing the type of sensor data the app wishes to receive and              .

    6. You pass true to Paint’s               method to enable anti-aliasing ...

Get Android How to Program, 3/e 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.