哪里android.camera.NEW_PICTURE定义?定义、android、camera、NEW_PICTURE

2023-09-13 01:14:22 作者:孤僻浪子i

我用 com.android.camera.NEW_PICTURE 来检查图像是否被捕获与否。

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)

com.android.camera.NEW_PICTURE 未讨论Android开发者网站的任何地方。

But com.android.camera.NEW_PICTURE is not discussed any where in android developers site.

推荐答案

在API 14(ICS)及以上的,可以使用动作" android.hardware.action.NEW_PICTURE ",这是此处引用:

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>

和剩下的唯一问题是任何OEM是否doen't广播&QUOT; com.android.camera.NEW_PICTURE&QUOT;在pre-ICS安卓...

And the only question left is whether any OEM doen't broadcast "com.android.camera.NEW_PICTURE" on a pre-ICS Android...