I think this might help http://code.google.com/android/reference/android/os/BatteryManager.html
On Sat, Oct 25, 2008 at 5:25 PM, Thomas <[EMAIL PROTECTED]> wrote: > > I would also like to know the calls to access the battery level. I did > a search in the SDK website to no avail. > > I would like to make a widget or something to that effect that will > display the % of the battery level rather than the picture icon. > Either to replace the picture or to have it sitting on the home > screen. > > Thank you, > > Thomas > > On Oct 23, 3:54 pm, Roman_Romano <[EMAIL PROTECTED]> wrote: > > Just a quick one... in the SDK is there a way to monitor thebattery > > level? i Would like to know/monitor how much life is left in thebattery. > > Also, while I'm here, is it possible to craft a service that sits > > waiting for the user to physically power off the phone. Once it > > detects it, I'd like to kick some process off before the unit powers > > off (a bit like a shutdown/logoff script). > > > > many thanks all > > > > -- - Sunit Katkar --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---