Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Intent Filter in Manifest? #3

Open
GoogleCodeExporter opened this issue Nov 12, 2015 · 2 comments
Open

Wrong Intent Filter in Manifest? #3

GoogleCodeExporter opened this issue Nov 12, 2015 · 2 comments
Assignees

Comments

@GoogleCodeExporter
Copy link

Shouldn't the intent filter be for "android.intent.action.BATTERY_LOW" instead 
of "android.intent.action.ACTION_BATTERY_LOW"?

Intent.ACTION_BATTERY_LOW is the constant, but its value is 
android.intent.action.BATTERY_LOW.

"android.intent.action.ACTION_BATTERY_LOW" does not react to any intents on my 
phone, while "android.intent.action.BATTERY_LOW" does.

Original issue reported on code.google.com by icyerasor on 29 Jun 2011 at 10:22

@GoogleCodeExporter
Copy link
Author

I verified this too.

When running with the original filter:
    <action android:name="android.intent.action.ACTION_BATTERY_LOW"/>
    <action android:name="android.intent.action.ACTION_BATTERY_OKAY"/>

I did not receive any notification in the stock receiver, after switching to:
    <action android:name="android.intent.action.BATTERY_LOW" />
    <action android:name="android.intent.action.BATTERY_OKAY" />

Everything worked as expected.

Original comment by daniel.m...@gmail.com on 25 Oct 2011 at 5:09

@GoogleCodeExporter
Copy link
Author

Please correct this (also in your blog post : 
http://android-developers.blogspot.com.br/2011/06/deep-dive-into-location.html) 
has led to great confusion !

Original comment by the.u...@gmail.com on 22 Sep 2013 at 4:41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants