Answers to Self-Review Exercises

  1. 3.1

    1. EditText.

    2. GridLayout.

    3. Outline.

    4. Bundle.

    5. TextWatcher.

    6. activity.

    7. onCreate.

    8. R.

    9. R.drawable.

    10. R.string.

    11. findViewById.

  2. 3.2

    1. True.

    2. False. Android apps don’t have a main method.

    3. False. An active (or running) activity is visible on the screen and “has the focus”—that is, it’s in the foreground.

    4. False. A stopped activity is not visible on the screen and is likely to be killed by the system when its memory is needed.

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.