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

Detecting the cell phone's reboot-completed state

Many android applications run services in the background when running multiple tasks and operations. For example, a weather application keeps checking the weather after a fixed time interval by using a background service. But have you ever wondered that when you reboot your cell phone or your battery dies and your phone is rebooted, then how these services start running again after reboot? Well, we will see how this can be done in this section.

When an Android phone is rebooted successfully, the Android OS broadcasts an intent notifying other applications that the reboot is completed. Then those applications start their background services again. In this section, we will create an application that ...

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