Lines Matching full:activity
19 import android.app.Activity;
100 private static void startCameraActivity(Activity activity, Intent intent,
104 intent.setClassName(activity.getPackageName(), className);
111 activity.startActivity(intent);
114 activity.startActivity(intent);
116 activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
119 public static void gotoMode(int mode, Activity activity) {
138 startCameraActivity(activity, new Intent(action), className);
141 public static void gotoVideoMode(Activity activity, boolean resetEffect) {
144 startCameraActivity(activity, intent, VIDEO_CAMERA_CLASS);
147 public static void gotoCameraMode(Activity activity) {
149 startCameraActivity(activity, intent, CAMERA_CLASS);
152 public static void gotoVideoMode(Activity activity, Intent intent) {
153 startCameraActivity(activity, intent, VIDEO_CAMERA_CLASS);
156 public static void gotoCameraMode(Activity activity, Intent intent) {
157 startCameraActivity(activity, intent, CAMERA_CLASS);
160 public static void gotoCameraImageGallery(Activity activity) {
161 gotoGallery(activity, R.string.gallery_camera_bucket_name, INCLUDE_IMAGES);
164 public static void gotoCameraVideoGallery(Activity activity) {
165 gotoGallery(activity, R.string.gallery_camera_videos_bucket_name, INCLUDE_VIDEOS);
168 private static void gotoGallery(Activity activity, int windowTitleId,
174 intent.putExtra("windowTitle", activity.getString(windowTitleId));
178 activity.startActivity(intent);
180 Log.e(TAG, "Could not start gallery activity", e);