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 low-battery state of a device

In this section, we will implement a small application which will show an alert message when the phone's battery gets low. Now, let's get started with the development of our first example. But, in order to start this example, you need to build an Android project. You can use the Android Studio or Eclipse IDE (as per your convenience), but make sure that in the case of Eclipse, you have correctly installed JDK, ADT, and Android SDK along with their compatibility. If you don't know the difference between these IDEs, you can refer to Chapter 1, Understanding Android, of this book. Following those steps will help you to create a complete Android project with some predefined files and folders.

After creating ...

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