Before I share my source code for Battery Status Application for Android. Below are the tools that you need to develop an Android Application or Widget:
- Android Development Environment - eclipse
- Android SDK
- Android Virtual Device Manager
For this Battery Status Application, below is the general outline:
- The layout is using ListView as the main and TextView for the individual row.
- Upon starting the application, a thread will be created to pull the battery info in 1-second interval. The battery info is being pulled using the BroadcastReceiver.

