https://github.com/codepath/android-services-demo
Android demo for services and notifications (Week 4)
https://github.com/codepath/android-services-demo
Last synced: 8 months ago
JSON representation
Android demo for services and notifications (Week 4)
- Host: GitHub
- URL: https://github.com/codepath/android-services-demo
- Owner: codepath
- Created: 2013-11-27T06:05:01.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T05:52:53.000Z (almost 8 years ago)
- Last Synced: 2023-05-10T14:13:27.564Z (over 2 years ago)
- Language: Java
- Homepage:
- Size: 629 KB
- Stars: 90
- Watchers: 19
- Forks: 58
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Services Demo
This is an Android demo for services and notifications including:
* Using a JobIntentService
* Communicating between JobIntentService and Activity using ResultReceiver
* Using AlarmManager
* Downloading Image Asynchronously with ImageDownloadService
Read more in our cliffnotes at [Services](https://github.com/thecodepath/android_guides/wiki/Starting-Background-Services) and [Notifications](https://github.com/thecodepath/android_guides/wiki/Notifications) guides and check out the source!
## Use Cases
**Simple JobIntentService**
* Use case #1: Demo a simple job intent service, sleep, then toast using ResultReceiver
* Use case #2: Demo a simple job 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 JobIntentService**
* 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.