title: broadcast receiver won't receive camera event
body: <p>I'm trying to make an app that detects when a user takes a photo. I set up a broadcast receiver class and registered it in the manifest file by:</p>
  
  <pre><code>&lt;receiver android:name="photoReceiver" &gt;
    &lt;intent-filter&gt;
      &lt;action android:name="com.android.camera.NEW_PICTURE"/&gt;
        &lt;data android:mimeType="image/*"/&gt;
   &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>No matter what I try to do the program won't receive the broadcast. Here is my receiver class:</p>
  
  <pre><code>public class photoReceiver extends BroadcastReceiver {
    private static final String TAG = "photoReceiver";
  
  @Override
  public void onReceive(Context context, Intent intent) {
      CharSequence text = "caught it";
      int duration = Toast.LENGTH_LONG;
      Log.d(TAG, "Received new photo");
  
      Toast toast = Toast.makeText(context, text, duration);
      toast.show();
   }
  }
  </code></pre>
  
  <p>If I remove the mimeType line in the manifest and in my activity I send my own broadcast using</p>
  
  <pre><code>Intent intent = new Intent("com.android.camera.NEW_PICTURE");
  sendBroadcast(intent);
  </code></pre>
  
  <p>then I successfully receive the broadcast and can see the log and toast window. Am I approaching this the right way? Is there any thing that I need to add?</p>