Fwiw, you don't need that permission to get the battery state.  Other than
that, I can't really help you.  If the status bar battery indicator is
changing, then the broadcast is indeed being sent, because it is driven off
of that.

On Tue, Jul 14, 2009 at 1:56 AM, Richard Schilling <
[email protected]> wrote:

>
> Oh, and I do have permission "android.permission.BATTERY_STATS"
> included in the manifest as well.
>
> Sooooo..... what's wrong?
>
> Any ideas?
>
> Thanks in advance,
>
> Richard Schilling
> Root Wireless
>
>
> On Jul 14, 1:54 am, Richard Schilling <[email protected]>
> wrote:
> > For some reason, the BATTERY_CHANGED event has stopped being broadcast
> > by the phone.
> >
> > I have my application setup properly:
> >
> > 1. I have a broadcast receiver setup with the filter of
> > "android.intent.action.BATTERY_CHANGED" in the manifest.
> > 2. I have permission of "android.permission.DEVICE_POWER" also defined
> > in the manifest.
> >
> > When the application first starts up, I get one BATTERY_CHANGED intent
> > that the phone gives me.  And, then after that, the phone doesn't
> > broadcast any more BATTERY_CHANGED intents as the phone is plugged in
> > and unplugged.
> >
> > This is really weird.
> >
> > Richard Schilling
> > Root Wireless
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to