Android Programming Tutorials

(Romina) #1
A Few Good Resources


  • Use onSaveInstanceState() to save the current contents of the details
    form, and restore those contents in onCreate() if an instance state is


available (e.g., after the screen was rotated). Note how this does not
cover the list – you will still lose all existing restaurants on a

rotation event. However, in a later tutorial, we will move that data
to the database, which will solve that problem.

Further Reading..........................................................................................


You can learn more about resource sets, particularly with respect to UI


impacts, in the "Working with Resources" chapter of The Busy Coder's


Guide to Android Development.


You will also find "Table 2" in the Alternate Resources section of the


Android developer guide to be of great use for determining the priority of


different resource set suffixes.


92
Free download pdf