title: BroadcastReceiver don't receive keypress on Camera button
body: <p>I am trying to play some tone when my application is in background and I press on "<strong><em>Camera</em></strong>" button for that I am doing this simple steps.</p>
  
  <ol>
  <li><p>Creating <code>BroadcastReceiver</code> class</p>
  
  <pre><code>public class CameraButtonListener extends BroadcastReceiver {
      @Override
      public void onReceive(Context context, Intent intent) {
          ToneGenerator tone = new ToneGenerator(AudioManager.STREAM_DTMF, 100);
          tone.startTone(0,2000);
          abortBroadcast();
      }
  }
  </code></pre></li>
  <li><p>Register <code>BrodcastReceiver</code> in <code>onCreate</code> methode.</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      MediaButtonBrodcastReceiver receiver = new MediaButtonBrodcastReceiver();        
      IntentFilter filter = new IntentFilter(Intent.ACTION_CAMERA_BUTTON);
      filter.setPriority(25645895);
      registerReceiver(receiver,filter);      
  }
  </code></pre></li>
  <li><p>Adding brodcast receiver to android manifest.</p>
  
  <pre><code>&lt;receiver android:enabled="true" android:exported="true" android:name=".CameraButtonListener"&gt;
  &lt;intent-filter android:priority="25645895"&gt;
      &lt;action android:name="android.intent.action.CAMERA_BUTTON" /&gt;
      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p></p></li>
  </ol>
  
  <p>After I launch my application, then press menu button and application goes to the background, after I press on Camera Button and nothing heppens, only camera application is opened. Maybe I am doing something wrong or I have missed something ?</p>
  
  <p>I use Sony Ericsson XPeria Arc phone with Android 2.3.4 OS version.</p>