Time for action - building an example game: "guess my number"

We want to build a simple example that will save and restore its state from a Bundle object. For this example, we have a very simple "guess my number" game. The Activity object picks a number between one and ten and challenges the user to guess it.

The basic user interface layout for this example will need a label telling the user what to do, an input area for them to input their guess, and a button to tell the application they wish to input a guess. The following diagram is a basic idea of how the user interface should be structured:

Time for action - building an example game: "guess my number"

If the user were to get an SMS while playing this game, ...

Get Android User Interface Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.