Registration of broadcast 'a in the manifest ended with a file. specifically: I wanted to screw ACTION_HEADSET_PLUG into my manifest. screwed, filter prescribed, launched the program on your phone. I turn off / turn on the headphones on my phone and nothing happens. I went the other way and registered the broadcastReceiver as an inner class in my Activity . screwed the registerBroadcast method and it worked. Immediately there was a reaction to the headphones. On stackoverflow kind of like (and in English not really) I found info that not all Broadcast 's would work if they were bolted in a manifest and were advised to use Broadcasta registration in program code.
So:
- How to find out a specific list of which
Intent.Actioncan be used in the manifest, and which ones are not? - Maybe for all polls to use registration in the program code?