Giter Site home page Giter Site logo

android-services-demo's Introduction

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.

android-services-demo's People

Contributors

nesquena avatar rogerhu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.