summaryrefslogtreecommitdiffstats
path: root/src_pd
diff options
context:
space:
mode:
authorMangesh Ghiware <mghiware@google.com>2013-08-14 08:44:07 -0700
committerMangesh Ghiware <mghiware@google.com>2013-08-14 10:01:41 -0700
commitf142f2f0823f08c5d6207066a291449ed90d642f (patch)
treeaa92e5440dc69dfdfe3ee59eaf31764064e6eafe /src_pd
parent389e8c887489db88e9324c17e8d29363198e7221 (diff)
downloadandroid_packages_apps_Gallery2-f142f2f0823f08c5d6207066a291449ed90d642f.zip
android_packages_apps_Gallery2-f142f2f0823f08c5d6207066a291449ed90d642f.tar.gz
android_packages_apps_Gallery2-f142f2f0823f08c5d6207066a291449ed90d642f.tar.bz2
Add a trampoline activity to launch new Camera
This preserves shortcuts, if any, to the Camera activity in the old package name. Bug: 10312966 Change-Id: Iffd3d708333515bb3b998faecff360bc01c142d2
Diffstat (limited to 'src_pd')
-rw-r--r--src_pd/com/android/gallery3d/util/CameraHelper.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src_pd/com/android/gallery3d/util/CameraHelper.java b/src_pd/com/android/gallery3d/util/CameraHelper.java
new file mode 100644
index 0000000..87ca038
--- /dev/null
+++ b/src_pd/com/android/gallery3d/util/CameraHelper.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.android.gallery3d.util;
+
+import android.content.Intent;
+
+public class CameraHelper {
+
+ public static final Intent CAMERA_LAUNCHER_INTENT = new Intent(Intent.ACTION_MAIN)
+ .setClassName("com.android.camera2", "com.android.camera.CameraActivity");
+}