From 56c8df1b0637c380bd7aa3f9a928430abfba2c7d Mon Sep 17 00:00:00 2001 From: Dirk Dougherty Date: Sat, 8 May 2010 17:15:10 -0700 Subject: sdk change: add index for tictactoe library and app. fix output path for spinner sample app in sdk builds. Change-Id: I51d412e1e78e6bd672eb419d53310eb1194672a3 --- samples/TicTacToeMain/_index.html | 63 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 samples/TicTacToeMain/_index.html (limited to 'samples/TicTacToeMain') diff --git a/samples/TicTacToeMain/_index.html b/samples/TicTacToeMain/_index.html new file mode 100644 index 000000000..439bf9a2f --- /dev/null +++ b/samples/TicTacToeMain/_index.html @@ -0,0 +1,63 @@ +

This sample demonstrates how an application can make use of shared code and +resources stored in an Android library project.

+ +

In this case, the TicTacToeMain application project includes a reference to +the TicTacToeLib library project. When you build the TicTacToeMain application, +the build tools look for the library project and compile it's code and resources +as part of the main application's .apk file. The main application +is designed with a launcher activity called MainActivity, shown at +left, below. When the user presses a button in the View, +MainActivity starts a second activity, GameActivity, +which is declared in the library project.

+ + + +

The TicTacToeLib library project includes a single Activity, +GameActivity, that handles most of the application lifecycle.

+ + + +

If you want to build the TicTacToeMain application, you can obtain it by +downloading the "Samples for SDK API 8" component (or higher version) into your +SDK, using the Android SDK and AVD Manager. Note that the application +project depends on code and resources found in the TicTacToeLib library project +— in order to build TicTacToeMain, you need to add both projects to your +development environment.

+ +

To build an application that uses a library project, you also need to update +to the latest version of the SDK tools (r6 or higher) and Android platforms, as +well as the latest version of ADT (0.9.7 or higher), if you are developing in +Eclipse.

+ +

For information about how to set up Android library projects, refer to +Developing +in Eclipse with ADT or Developing in +Other IDEs, depending on your environment.

+ +Screenshot of the main application +Screenshot of an Activity declared in a library project -- cgit v1.2.3