Respond to Intent.ACTION_BATTERY_CHANGED
How can I setup an method to be called whenever Intent.ACTION_BATTERY_CHANGED is raised? Do I have to subclass B开发者_运维百科roadcastReciever? Or can I use a method to hook up the action to a method.
I think that SirDarius answered you in your previous question:
http://www.tutorialforandroid.com/2009/01/getting-battery-information-on-android.html
精彩评论