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