Lines Matching refs:activity
80 private static void startCameraActivity(Activity activity, Intent intent, in startCameraActivity() argument
84 intent.setClassName(activity.getPackageName(), className); in startCameraActivity()
91 activity.startActivity(intent); in startCameraActivity()
94 activity.startActivity(intent); in startCameraActivity()
96 activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); in startCameraActivity()
99 public static void gotoMode(int mode, Activity activity) { in gotoMode() argument
118 startCameraActivity(activity, new Intent(action), className); in gotoMode()
121 public static void gotoVideoMode(Activity activity, boolean resetEffect) { in gotoVideoMode() argument
124 startCameraActivity(activity, intent, VIDEO_CAMERA_CLASS); in gotoVideoMode()
127 public static void gotoCameraMode(Activity activity) { in gotoCameraMode() argument
129 startCameraActivity(activity, intent, CAMERA_CLASS); in gotoCameraMode()
132 public static void gotoVideoMode(Activity activity, Intent intent) { in gotoVideoMode() argument
133 startCameraActivity(activity, intent, VIDEO_CAMERA_CLASS); in gotoVideoMode()
136 public static void gotoCameraMode(Activity activity, Intent intent) { in gotoCameraMode() argument
137 startCameraActivity(activity, intent, CAMERA_CLASS); in gotoCameraMode()
140 public static void gotoCameraImageGallery(Activity activity) { in gotoCameraImageGallery() argument
141 gotoGallery(activity, R.string.gallery_camera_bucket_name, INCLUDE_IMAGES); in gotoCameraImageGallery()
144 public static void gotoCameraVideoGallery(Activity activity) { in gotoCameraVideoGallery() argument
145 gotoGallery(activity, R.string.gallery_camera_videos_bucket_name, INCLUDE_VIDEOS); in gotoCameraVideoGallery()
148 private static void gotoGallery(Activity activity, int windowTitleId, in gotoGallery() argument
154 intent.putExtra("windowTitle", activity.getString(windowTitleId)); in gotoGallery()
158 activity.startActivity(intent); in gotoGallery()