O'Reilly logo

Android™ How to Program, Second Edition by Abbey Deitel, Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

6.3 Fill in the blanks in each of the following statements:

a) Method _________ is called for the current Activity when another activity receives the focus, which sends the current activity to the background.

b) When an Activity is shut down, its _________ method is called.

c) A(n) _________ allows an app to react to more sophisticated user interactions such as flings, double-taps, long presses and scrolls.

d) Activity’s _________ method specifies that an app’s volume can be controlled with the device’s volume keys and should be the same as the device’s music playback volume. The method receives a constant from class AudioManager (package android.media).

e) Games often require complex logic that should be performed in separate threads ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required