Skip to content

ykankaya/android-services-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Services Demo

This is an Android demo for services and notifications including:

  • Using an IntentService
  • Communicating between IntentService and Activity using ResultReceiver
  • Using AlarmManager
  • Downloading Image Asynchronously with ImageDownloadService

     

Read more in our cliffnotes at Services and Notifications guides and check out the source!

Use Cases

Simple IntentService

  • Use case #1: Demo a simple intent service, sleep, then toast using ResultReceiver
  • Use case #2: Demo a simple intent service, sleep, then display in Notification Center (first builder example)
  • Use case #3: Upon clicking on a notification, go to a particular activity and display the notification information

ImageDownloadService

  • Use case #4: Demo a long download with a 10 second sleep. Close the app, display in Notification Center when done.
  • Use case #5: Show the downloaded image in the expansion view within notification.

AlarmManager for Simple IntentService

  • Use case #6: An AlarmManager fires a message that will be displayed in Notification Center
  • Use case #7: Demonstrated “stacked notifications” in a repeating alarm that updates the existing notification.

About

Android demo for services and notifications (Week 4)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%