The following sample applications can all be downloaded as part of the Tegra Android Developer Pack.
Android Lifecycle Samples
The Android Lifecycle Samples are designed to show native, 3D applications that handle the most common Android lifecycle events; suspend/resume, orientation change, task-swapping, etc.
Native Globe is a fully interactive, shader-based native 3D application with a basic "game-like" interaction model. It includes touch interaction and looped music, showing how all such game features should interact with Android application lifecycle. Like all of the other samples in this pack, it uses the pure-native code
NativeActivitysystem added with Android's SDK 9 and NDK r5.
Native Basic is a much simpler native 3D application that shows Android application lifecycle handling without the added complexity of the geometry rendering and UI used in Native Globe.
Android Functionality Samples
The Android Functionality Samples are designed to show native and Java access to Android framework-specific functionality that may be of interest to native application developers.
Simple JNI is a simple, native 3D app that can invoke Java-only Android functionality (launching a browser) without the application having to include any explicit Java files.
Native Activity Subclass
Native Subclass is native 3D application that shows how to subclass
NativeActivityto add small pieces of Java code to an otherwise native app. It also shows how to call this app-specific Java code from native code.
Dynamic Resolution is a sample that shows how OpenGL ES and Android framework functionalities can be used to allow a 3D game to render at a resolution independent of the device screen while still being scaled to fill the screen.
Input Device Samples
The Input Device Samples are designed to show how native applications can reliably support a wide range of input devices.
Native Accelerometer shows how a native application can receive and handle accelerometer vector events, focusing on how those events must be translated from the device's base orientation to the application's current rendering orientation.
Native Gamepad includes both Java and native code that allows an application to receive, parse and use the button, digital axis and analog axis events that can be generated by USB and wireless game controllers. Requires Android's SDK 11 support on the target platform.
Native Multitouch demonstrates the parsing and handling of multiple, simultaneous touch events, specifically how to track specific fingers through a gesture in a stable manner.