to top
Android APIs
Sample Code >

Spinner - Spinner

← Back

This sample is a simple application that serves as an application under test for the SpinnerTest test application example.

This application illustrates basic state management across the Android application life cycle, mainly for the purpose of highlighting common patterns of Activity testing. When the application is first run, the spinner widget displays a default selection of "Earth". Thereafter, the application saves a selection as soon as it is made. The application remembers the selection from invocation to invocation, even if the device reboots.

The test application SpinnerTest shows you how to set up tests to monitor and prevent code regressions in the management of state across invocations and power cycles.

For more information about this application, see the Activity Testing tutorial.

Subdirectories

Files