xref: /aosp_15_r20/development/samples/Spinner/_index.html (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker<p>
2*90c8c64dSAndroid Build Coastguard WorkerThis sample is a simple application that serves as an application under test
3*90c8c64dSAndroid Build Coastguard Workerfor the <a href="../SpinnerTest/index.html">SpinnerTest</a> test application example.
4*90c8c64dSAndroid Build Coastguard Worker</p>
5*90c8c64dSAndroid Build Coastguard Worker<p>
6*90c8c64dSAndroid Build Coastguard WorkerThis application illustrates basic state management across the Android application life cycle,
7*90c8c64dSAndroid Build Coastguard Workermainly for the purpose of highlighting common patterns of Activity testing. When the application
8*90c8c64dSAndroid Build Coastguard Workeris first run, the spinner widget displays a default selection of &quot;Earth&quot;.
9*90c8c64dSAndroid Build Coastguard WorkerThereafter, the application saves a selection as soon as it
10*90c8c64dSAndroid Build Coastguard Workeris made. The application remembers the selection from invocation to invocation, even
11*90c8c64dSAndroid Build Coastguard Workerif the device reboots.
12*90c8c64dSAndroid Build Coastguard Worker</p>
13*90c8c64dSAndroid Build Coastguard Worker<p>
14*90c8c64dSAndroid Build Coastguard WorkerThe test application <a href="../SpinnerTest/index.html">SpinnerTest</a>
15*90c8c64dSAndroid Build Coastguard Workershows you how to set up tests to monitor and prevent code regressions in the
16*90c8c64dSAndroid Build Coastguard Workermanagement of state across invocations and power cycles.
17*90c8c64dSAndroid Build Coastguard Worker</p>
18*90c8c64dSAndroid Build Coastguard Worker<p>
19*90c8c64dSAndroid Build Coastguard WorkerFor more information about this application, see the
20*90c8c64dSAndroid Build Coastguard Worker<a href="../../../resources/tutorials/testing/activity_test.html">Activity Testing</a> tutorial.
21*90c8c64dSAndroid Build Coastguard Worker</p>
22