0

There appears to be an issue where a user present broadcast receiver is sometimes not properly triggered when registered through the manifest for some devices running my app. Sometimes it is, sometimes its not. My idea is to have a fallback toggle that runs a persistent service that starts that broadcast instead.

The issue is that I don't want the same receiver being registered twice, so I want do unregister the manifest one.

Deal
  • 106
  • 10
  • http://stackoverflow.com/questions/4805269/programmatically-register-a-broadcast-receiver – Murad Mar 20 '14 at 22:16

1 Answers1

0

You cannot "unregister" it, but you can disable it, using PackageManager and setComponentEnabledSetting().

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491