Tuesday, May 22, 2012

Android Sample Code: Battery Widget

*If you are new to Android, you should read this post first: Sample Code Battery Status

For a widget to work, below are some important items:
  • AndroidManifest.xml must be altered
  • Must create a layout file for widget provider
  • Must create a layout for widget
  • Main class source code