@@ -205,6 +205,29 @@ public final class MediaStore {
205205 */
206206 public final static String ACTION_IMAGE_CAPTURE = "android.media.action.IMAGE_CAPTURE" ;
207207
208+ /**
209+ * Intent action that can be sent to have the camera application capture an image and return
210+ * it when the device is secured (e.g. with a pin, password, pattern, or face unlock).
211+ * Applications responding to this intent must not expose any personal content like existing
212+ * photos or videos on the device. The applications should be careful not to share any photo
213+ * or video with other applications or internet. The activity should use {@link
214+ * android.view.WindowManager.LayoutParams#FLAG_SHOW_WHEN_LOCKED} to display on top of the
215+ * lock screen while secured. There is no activity stack when this flag is used, so
216+ * launching more than one activity is strongly discouraged.
217+ * <p>
218+ * The caller may pass an extra EXTRA_OUTPUT to control where this image will be written.
219+ * If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap
220+ * object in the extra field. This is useful for applications that only need a small image.
221+ * If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri
222+ * value of EXTRA_OUTPUT.
223+ *
224+ * @see #ACTION_IMAGE_CAPTURE
225+ * @see #EXTRA_OUTPUT
226+ * @hide
227+ */
228+ public static final String ACTION_IMAGE_CAPTURE_SECURE =
229+ "android.media.action.IMAGE_CAPTURE_SECURE" ;
230+
208231 /**
209232 * Standard Intent action that can be sent to have the camera application
210233 * capture a video and return it.
0 commit comments