Android: don't compile powermgmt-sim.c
commitce699043d6ab8189f496a4b3ae1a9c198b108131
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 1 Sep 2010 23:36:15 +0000 (1 23:36 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 1 Sep 2010 23:36:15 +0000 (1 23:36 +0000)
tree26fb9244e04ffd4297cb918ae8c7de2b731dd28a
parent9233646287f1614b8bdf5b71f05b80020afb16b8
Android: don't compile powermgmt-sim.c

Instead implement a bit of battery monitoring. Currently it only fetches the battery level (in %) every 30s,
but it could do more like battery status, charger connected, voltage...
Theoretically, we could also exit/quit after some time of inactivity too
(perhaps not a bad idea since Rockbox puts a slight but still non-zero CPU load even if doing nothing).

Ironically, Rockbox is now the only way to get the exact battery level (at least I haven't found anything yet) on my phone :-)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27974 a1c6a512-1295-4272-9138-f99709370657
android/src/org/rockbox/RockboxService.java
apps/settings.c
apps/settings.h
apps/settings_list.c
firmware/SOURCES
firmware/target/hosted/android/system-android.c
uisimulator/common/SOURCES