where is android.camera.NEW_PICTURE defined?

android, camera

Solution

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...

Problem

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.

Original source

Related problems