Examples of how to use the android.app APIs.

  1. Activities - These examples show various ways you can use activities to implement an application's user interface.
    1. {@link com.android.samples.app.HelloWorld Hello World}
    2. {@link com.android.samples.app.SaveRestoreState Save & Restore State}
    3. {@link com.android.samples.app.PersistentState Persistent State}
    4. {@link com.android.samples.app.ReceiveResult Receive Result}
    5. {@link com.android.samples.app.Forwarding Forwarding}
  2. 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.
    1. {@link com.android.samples.app.LocalServiceController Local Service Controller}
    2. {@link com.android.samples.app.LocalServiceBinding Local Service Binding}
    3. {@link com.android.samples.app.RemoteServiceController Remote Service Controller}
    4. {@link com.android.samples.app.RemoteServiceBinding Remote Service Binding}
  3. Alarms - These examples show how you can use alarms to schedule background events.
    1. {@link com.android.samples.app.AlarmController Alarm Controller}
    2. {@link com.android.samples.app.AlarmService Alarm Service}