There's no way to query the power state directly that I know of, but
you can have a receiver receive the intent 'ACTION_BATTERY_CHANGED'
which should be thrown when the battery state changes.

                            Mark

On Jan 6, 11:29 pm, "xroge...@gmail.com" <xroge...@gmail.com> wrote:
> I couldn't find some stuff about power measurement/management in
> Android/G1. I wonder if Android application can access power related
> values like current battery drain rate, or Android kernel supports
> ACPI. Is there any reference or document for those things?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to