diff options
Diffstat (limited to 'src_pd')
-rw-r--r-- | src_pd/com/android/gallery3d/util/IntentHelper.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src_pd/com/android/gallery3d/util/IntentHelper.java b/src_pd/com/android/gallery3d/util/IntentHelper.java index 843a39f4c..13f69eb1e 100644 --- a/src_pd/com/android/gallery3d/util/IntentHelper.java +++ b/src_pd/com/android/gallery3d/util/IntentHelper.java @@ -15,13 +15,18 @@ */ package com.android.gallery3d.util; +import android.content.Context; import android.content.Intent; public class IntentHelper { - public static final Intent CAMERA_LAUNCHER_INTENT = new Intent(Intent.ACTION_MAIN) - .setClassName("com.android.camera2", "com.android.camera.CameraActivity"); + public static Intent getCameraIntent(Context context) { + return new Intent(Intent.ACTION_MAIN) + .setClassName("com.android.camera2", "com.android.camera.CameraActivity"); + } - public static final Intent GALLERY_LAUNCHER_INTENT = new Intent(Intent.ACTION_MAIN) - .setClassName("com.android.gallery3d", "com.android.gallery3d.app.GalleryActivity"); + public static Intent getGalleryIntent(Context context) { + return new Intent(Intent.ACTION_MAIN) + .setClassName("com.android.gallery3d", "com.android.gallery3d.app.GalleryActivity"); + } } |