summaryrefslogtreecommitdiffstats
path: root/src_pd/com/android/gallery3d
diff options
context:
space:
mode:
Diffstat (limited to 'src_pd/com/android/gallery3d')
-rw-r--r--src_pd/com/android/gallery3d/util/IntentHelper.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src_pd/com/android/gallery3d/util/IntentHelper.java b/src_pd/com/android/gallery3d/util/IntentHelper.java
index 8aebfc1fd..d0fb59ae8 100644
--- a/src_pd/com/android/gallery3d/util/IntentHelper.java
+++ b/src_pd/com/android/gallery3d/util/IntentHelper.java
@@ -15,17 +15,16 @@
*/
package com.android.gallery3d.util;
-import android.content.Context;
import android.content.Intent;
+import android.provider.MediaStore;
public class IntentHelper {
- public static Intent getCameraIntent(Context context) {
- return new Intent(Intent.ACTION_MAIN)
- .setClassName("com.android.camera2", "com.android.camera.CameraLauncher");
+ public static Intent getCameraIntent() {
+ return new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
}
- public static Intent getGalleryIntent(Context context) {
+ public static Intent getGalleryIntent() {
return new Intent(Intent.ACTION_MAIN)
.setClassName("com.android.gallery3d", "com.android.gallery3d.app.GalleryActivity");
}