A simple Battery Widget
<p>If i would like to develop a simple battery widget, which update the widget picture whenever any battery information changes (AC plugged, battery level changes), how should i keep track to the battery status? i do consider to use AlarmManager but then the widget will be updated periodically (say, 5mins), how can i make the update be done right after any event happens?</p>
