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