If you need this information on demand, call registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)) and examine the resulting Intent. There will be extras (keys are defined on BatteryManager) for that info.
On Mon, Nov 19, 2012 at 4:24 PM, Rodolfo Ramos <[email protected]> wrote: > Hello everybody, I need to monitor changes in battery Android 1.5. But the > instructions I found on the android site, found nothing for the 1.5. Does > anyone have any information. I need to know if the phone is connected to > power or not. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

