Screen Orientation, Logging, Persistence




CS185c

Chris Pollett

Feb. 27, 2012

Outline

Finer Grain Control

Finer Grain Control

Some Comments on Using Two Views

Quiz

Which of the following is true?

  1. In HTML 5 Javascript, a rotateorientation event is generated when the user changes the device from portrait to landscape mode.
  2. shouldAutorotateToInterfaceOrientation is called by iOS to determine which orientation your app supports.
  3. Javascript uses the class keyword to declare a new class.

Logging

Starting Data Persistence

Handling Rotations in Android

Handling Rotations in Android - cont'd

Logging

Logging Example

Storing and Retrieving Data

Using Preferences

More on Using Preferences