From bee8cd502fb080bd4353909a0bf04530e7d53d9c Mon Sep 17 00:00:00 2001 From: Joe Malin Date: Tue, 20 Apr 2010 19:54:58 -0700 Subject: [PATCH] Doc Change: Files for the Spinner and SpinnerTest sample applications, part of Activity Testing tutorial Change-Id: If9b6f214cdad870257efc34193eed846cde2ec47 --- samples/Spinner/_index.html | 27 +++++----- samples/SpinnerTest/AndroidManifest.xml | 1 + samples/SpinnerTest/_index.html | 53 +++++++++++++++++-- .../spinner/test/SpinnerActivityTest.java | 20 ++++--- 4 files changed, 71 insertions(+), 30 deletions(-) diff --git a/samples/Spinner/_index.html b/samples/Spinner/_index.html index 2e50d9d88..babe099dc 100644 --- a/samples/Spinner/_index.html +++ b/samples/Spinner/_index.html @@ -1,22 +1,21 @@

-This sample is the application under test for the -Activity - Testing Tutorial. It contains a single Activity that displays a -Spinner widget backed by an array of strings containing the names of the planets -in the Solar System. When an entry is selected from the Spinner, the entry is -displayed in a text box. +This sample is a simple application that serves as an application under test +for the SpinnerTest test application example.

-An important part of this application is state management. 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 +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.

-For more information about this application, see the Activity Testing Tutorial. -The test application for this application is in the SpinnerTest sample application. +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.

- -The Spinner application diff --git a/samples/SpinnerTest/AndroidManifest.xml b/samples/SpinnerTest/AndroidManifest.xml index e151d6e94..99830f879 100644 --- a/samples/SpinnerTest/AndroidManifest.xml +++ b/samples/SpinnerTest/AndroidManifest.xml @@ -26,6 +26,7 @@ package="com.android.example.spinner.test" android:versionCode="1" android:versionName="1.0"> +