Lines Matching refs:activity
211 Activity activity = getActivity();
212 if (null != activity) {
213 activity.finish();
320 Activity activity = getActivity(); in onClick() local
321 if (null != activity) { in onClick()
322 new AlertDialog.Builder(activity) in onClick()
421 final Activity activity = getActivity(); in openCamera() local
422 if (null == activity || activity.isFinishing()) { in openCamera()
425 CameraManager manager = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE); in openCamera()
452 Toast.makeText(activity, "Cannot access the camera.", Toast.LENGTH_SHORT).show(); in openCamera()
453 activity.finish(); in openCamera()
510 Activity activity = getActivity(); in startPreview() local
511 if (null != activity) { in startPreview()
512 Toast.makeText(activity, "Failed", Toast.LENGTH_SHORT).show(); in startPreview()
551 Activity activity = getActivity(); in configureTransform() local
552 if (null == mTextureView || null == mPreviewSize || null == activity) { in configureTransform()
555 int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); in configureTransform()
574 final Activity activity = getActivity(); in setUpMediaRecorder() local
575 if (null == activity) { in setUpMediaRecorder()
590 int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); in setUpMediaRecorder()
653 Activity activity = getActivity(); in startRecordingVideo()
654 if (null != activity) { in startRecordingVideo()
655 Toast.makeText(activity, "Failed", Toast.LENGTH_SHORT).show(); in startRecordingVideo()
682 Activity activity = getActivity(); in stopRecordingVideo() local
683 if (null != activity) { in stopRecordingVideo()
684 Toast.makeText(activity, "Video saved: " + mNextVideoAbsolutePath, in stopRecordingVideo()
720 final Activity activity = getActivity(); in onCreateDialog() local
721 return new AlertDialog.Builder(activity) in onCreateDialog()
726 activity.finish(); in onCreateDialog()