Examples of how to use the android.app APIs.
- Activities
- These examples show various ways you can use activities to implement an
application's user interface.
- {@link com.android.samples.app.HelloWorld Hello World}
- {@link com.android.samples.app.SaveRestoreState Save & Restore State}
- {@link com.android.samples.app.PersistentState Persistent State}
- {@link com.android.samples.app.ReceiveResult Receive Result}
- {@link com.android.samples.app.Forwarding Forwarding}
- Services
- These examples show how you can implement application services, which
give you a way to run code in the background outside of the normal UI flow.
- {@link com.android.samples.app.LocalServiceController Local Service
Controller}
- {@link com.android.samples.app.LocalServiceBinding Local Service Binding}
- {@link com.android.samples.app.RemoteServiceController Remote Service
Controller}
- {@link com.android.samples.app.RemoteServiceBinding Remote Service
Binding}
- Alarms
- These examples show how you can use alarms to schedule background
events.
- {@link com.android.samples.app.AlarmController Alarm Controller}
- {@link com.android.samples.app.AlarmService Alarm Service}