Hi group,
I added broadcast listener "BATTERY_CHANGED" to Android Manifest file
so that when the status changed I should get informed. I am adding to
Android Manifest file as I want it active through my application life
time.
But the problem is that I am not getting the broad cast event from the
system when battery status changes :(
My code is here :-
<receiver android:name=".MyBroadcastReceiver" android:enabled="true"
android:permission="android.permission.BROADCAST_STICKY">
<intent-filter>
<action
android:name="android.intent.action.BATTERY_CHANGED" />
</intent-filter>
</receiver>
<uses-permission android:name="android.permission.BATTERY_STATS"/>
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
Can anybody please tell me what wrong I am doing here?
Thanks,
AJ
--
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
To unsubscribe from this group, send email to
android-developers+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.