# Google Phone Battery Usage Graphing I've been learning how to program for my Android G1 "google phone" recently. I wanted to learn how to use the database and network communication APIs at the same time as learning how to write background services. I decided I would write something to monitor my battery level and upload data about it to my server which would then graph it using [RRDtool](https://oss.oetiker.ch/rrdtool/). The final result is the following three graphs. They're not static graphs, they're being updated every fifteen minutes: ![Hourly graph](/blog/battery-hour.png "Hourly graph") ![Daily graph](/blog/battery-day.png "Daily graph") ![Weekly graph](/blog/battery-week.png "Weekly graph") I'm using an extended life battery which makes a charge last about 225% as long as the standard G1 battery. That gives you an idea of the charge and discharge times of the phone. I tend to have wifi and bluetooth turned off unless I need them. **Update:** For access to the source code, please see [Android Battery Graphing Source Code](https://www.grepular.com/Android_Battery_Graphing_Source_Code)