I used com.android.camera.NEW_PICTURE
to check whether an image is captured or not.
(receiver android:name="NewPhotoReceiver")
(intent-filter)
(action android:name="com.android.camera.NEW_PICTURE"/)
(data android:mimeType="image/*"/)
(/intent-filter)
(/receiver)
But com.android.camera.NEW_PICTURE
is not discussed any where in android developers site.
In API 14 (ICS) and above, you can use the action "android.hardware.action.NEW_PICTURE", which is referenced here:
http://developer.android.com/reference/android/hardware/Camera.html#ACTION_NEW_PICTURE
So I guess specifying both of them together should cover both past & future usage:
<intent-filter>
<action android:name="com.android.camera.NEW_PICTURE" />
<action android:name="android.hardware.action.NEW_PICTURE" />
<data android:mimeType="image/*" />
</intent-filter>
And the only question left is whether any OEM doen't broadcast "com.android.camera.NEW_PICTURE" on a pre-ICS Android...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With