summaryrefslogtreecommitdiffstats
path: root/src_pd
diff options
context:
space:
mode:
authorMangesh Ghiware <mghiware@google.com>2013-10-03 12:36:57 -0700
committerMangesh Ghiware <mghiware@google.com>2013-10-03 12:36:57 -0700
commit9149879dc8c2ff6fe233d6e20858ebc081068abb (patch)
treeec1a367210c3163e5d3d5e15eccabe671a25cb08 /src_pd
parent06c027675948259368a902fd6f8c2ecac5db5167 (diff)
downloadandroid_packages_apps_Gallery2-9149879dc8c2ff6fe233d6e20858ebc081068abb.zip
android_packages_apps_Gallery2-9149879dc8c2ff6fe233d6e20858ebc081068abb.tar.gz
android_packages_apps_Gallery2-9149879dc8c2ff6fe233d6e20858ebc081068abb.tar.bz2
Add methods to return Camera and Gallery launcher intents.
Bug: 10820027 Change-Id: I340072c48832e23245aa041503649b40cbaf0bf0
Diffstat (limited to 'src_pd')
-rw-r--r--src_pd/com/android/gallery3d/util/IntentHelper.java13
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 843a39f..13f69eb 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");
+ }
}