首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

Android接收电池状态变更通知

2012-06-27 
Android接收电池状态变化通知注册接收广播You can?not?receive this through components declared in mani

Android接收电池状态变化通知

注册接收广播

You can?not?receive this through components declared in manifests, only by explicitly registering for it with?Context.registerReceiver(). See?ACTION_BATTERY_LOW,ACTION_BATTERY_OKAY,?ACTION_POWER_CONNECTED, and?ACTION_POWER_DISCONNECTED?for distinct battery-related broadcasts that are sent and can be received through manifest receivers.

?

参考

http://developer.android.com/reference/android/content/Intent.html#ACTION_BATTERY_CHANGED?

热点排行