title: Android - how to unregister a receiver created in the manifest?
body: <p>I know about using registerReceiver and unregisterReceiver in Java code for dealing with receivers, but let's say I have the following in my manifest: </p>
  
  <pre><code>    &lt;receiver android:name=".headsetHook"&gt;
          &lt;intent-filter android:priority="99999999999"&gt;
              &lt;action android:name="android.intent.action.ACTION_HEADSET_PLUG" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  </code></pre>
  
  <p>Is there a way I could unregister this somewhere in Java code? Could I give it an id attribute or something and then get it and unregister it? I ask because I want my app to do something only on the first time this action happens, then unregister it and re-register it later in Java. </p>
  
  <p>Hope I made that clear, thanks for any help. </p>