Skip to content

Commit dad3293

Browse files
Wu-cheng LiAndroid (Google) Code Review
authored andcommitted
Merge "Add INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE intent." into jb-mr1-dev
2 parents 5d1a61c + f883205 commit dad3293

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

core/java/android/provider/MediaStore.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public final class MediaStore {
120120
*/
121121
public static final String INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH =
122122
"android.media.action.MEDIA_PLAY_FROM_SEARCH";
123-
123+
124124
/**
125125
* The name of the Intent-extra used to define the artist
126126
*/
@@ -172,6 +172,23 @@ public final class MediaStore {
172172
*/
173173
public static final String INTENT_ACTION_STILL_IMAGE_CAMERA = "android.media.action.STILL_IMAGE_CAMERA";
174174

175+
/**
176+
* The name of the Intent action used to launch a camera in still image mode
177+
* for use when the device is secured (e.g. with a pin, password, pattern,
178+
* or face unlock). Applications responding to this intent must not expose
179+
* any personal content like existing photos or videos on the device. The
180+
* applications should be careful not to share any photo or video with other
181+
* applications or internet. The activity should use {@link
182+
* android.view.WindowManager.LayoutParams#FLAG_SHOW_WHEN_LOCKED} to display
183+
* on top of the lock screen while secured. There is no activity stack when
184+
* this flag is used, so launching more than one activity is strongly
185+
* discouraged.
186+
*
187+
* @hide
188+
*/
189+
public static final String INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE =
190+
"android.media.action.STILL_IMAGE_CAMERA_SECURE";
191+
175192
/**
176193
* The name of the Intent action used to launch a camera in video mode.
177194
*/

0 commit comments

Comments
 (0)