summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2012-09-21 14:40:26 +0800
committerWu-cheng Li <wuchengli@google.com>2012-09-21 14:47:47 +0800
commit37959ef70f2a0a50e38698cfef1a61fbf8d6b307 (patch)
treee9c2e0055cc6b51403a7906b93468eb6fdb8e4f1 /core/java/android/provider
parent89c82814dbdfd807b1611a8379be0421cd2f512d (diff)
downloadframeworks_base-37959ef70f2a0a50e38698cfef1a61fbf8d6b307.zip
frameworks_base-37959ef70f2a0a50e38698cfef1a61fbf8d6b307.tar.gz
frameworks_base-37959ef70f2a0a50e38698cfef1a61fbf8d6b307.tar.bz2
Add secure version of image capture intent.
bug:7141738 Change-Id: I77789ffb53e70efd946f331286a895b7a1239661
Diffstat (limited to 'core/java/android/provider')
-rw-r--r--core/java/android/provider/MediaStore.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/core/java/android/provider/MediaStore.java b/core/java/android/provider/MediaStore.java
index 3c2d164..cfa5479 100644
--- a/core/java/android/provider/MediaStore.java
+++ b/core/java/android/provider/MediaStore.java
@@ -206,6 +206,29 @@ public final class MediaStore {
public final static String ACTION_IMAGE_CAPTURE = "android.media.action.IMAGE_CAPTURE";
/**
+ * Intent action that can be sent to have the camera application capture an image and return
+ * it when the device is secured (e.g. with a pin, password, pattern, or face unlock).
+ * Applications responding to this intent must not expose any personal content like existing
+ * photos or videos on the device. The applications should be careful not to share any photo
+ * or video with other applications or internet. The activity should use {@link
+ * android.view.WindowManager.LayoutParams#FLAG_SHOW_WHEN_LOCKED} to display on top of the
+ * lock screen while secured. There is no activity stack when this flag is used, so
+ * launching more than one activity is strongly discouraged.
+ * <p>
+ * The caller may pass an extra EXTRA_OUTPUT to control where this image will be written.
+ * If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap
+ * object in the extra field. This is useful for applications that only need a small image.
+ * If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri
+ * value of EXTRA_OUTPUT.
+ *
+ * @see #ACTION_IMAGE_CAPTURE
+ * @see #EXTRA_OUTPUT
+ * @hide
+ */
+ public static final String ACTION_IMAGE_CAPTURE_SECURE =
+ "android.media.action.IMAGE_CAPTURE_SECURE";
+
+ /**
* Standard Intent action that can be sent to have the camera application
* capture a video and return it.
* <p>