Skip to content Skip to sidebar Skip to footer

Intent Action_power_connected Not Working When Added Inside Androidmanifest.xml

I am adding intent filter for battery power connected and disconnected events inside my app's AndroidManifest.xml file and registering PowerConnection receiver as given in this lin

Solution 1:

If you are using API 26 and above, this method does not work. Read this: https://developer.android.com/about/versions/oreo/background I am also try to sovle similar problem. Now created a foreground service that starts at boot and monitors the status of the charger.


Post a Comment for "Intent Action_power_connected Not Working When Added Inside Androidmanifest.xml"