From f142f2f0823f08c5d6207066a291449ed90d642f Mon Sep 17 00:00:00 2001 From: Mangesh Ghiware Date: Wed, 14 Aug 2013 08:44:07 -0700 Subject: 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 --- .../com/android/gallery3d/util/CameraHelper.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src_pd/com/android/gallery3d/util/CameraHelper.java (limited to 'src_pd') 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 000000000..87ca038bc --- /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"); +} -- cgit v1.2.3