Sample Code >

ApiDemos - API Demos

The API Demos application includes a variety of small applications that illustrate the use of various Android APIs. It includes samples of:

  • Notifications
  • Alarms
  • Progress Dialogs
  • Intents
  • Menus
  • Search
  • Persistent application state
  • Preferences
  • Background Services
  • App Widgets
  • Voice Recognition
  • And many many more...

You'll notice that all the samples are included in a single Android project, so the application code and other resource files for all samples are batched together. To help you find the code that's relevant to you, here's a directory that points to the program code for the different topics included in the project:

Subdirectories

Files