O'Reilly logo

Learning Android Intents by Wajahat Karim, Muhammad Usama bin Aftab

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Usage and implementation of Intent Service

From the previous parts of this chapter, we have the clear view of the definition of Intent Service and what the fundamental differences are that it has with Threads, Async Tasks, and Service. It is now time to start with the implementation and usage of Intent Services. For this, we will start with the example which will help us to learn how to generate a fake notification from Intent Service.

Generating a fake notification from Intent Service

In this example, we will learn the use of Intent Service in producing the notification on your notification bar. The example will also explain the use of the onHandleIntent() method which is used to implement all the functionality of Intent Service that also includes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required