Home | History | Annotate | Download | only in com.example.android.camera2basic

Lines Matching refs:activity

20 import android.app.Activity;
209 Activity activity = getActivity();
210 if (null != activity) {
211 activity.finish();
357 final Activity activity = getActivity();
358 if (activity != null) {
359 activity.runOnUiThread(new Runnable() {
362 Toast.makeText(activity, text, Toast.LENGTH_SHORT).show();
492 Activity activity = getActivity();
493 CameraManager manager = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE);
522 int displayRotation = activity.getWindowManager().getDefaultDisplay().getRotation();
544 activity.getWindowManager().getDefaultDisplay().getSize(displaySize);
610 Activity activity = getActivity();
611 CameraManager manager = (CameraManager) activity.getSystemService(Context.CAMERA_SERVICE);
741 Activity activity = getActivity();
742 if (null == mTextureView || null == mPreviewSize || null == activity) {
745 int rotation = activity.getWindowManager().getDefaultDisplay().getRotation();
813 final Activity activity = getActivity();
814 if (null == activity || null == mCameraDevice) {
828 int rotation = activity.getWindowManager().getDefaultDisplay().getRotation();
894 Activity activity = getActivity();
895 if (null != activity) {
896 new AlertDialog.Builder(activity)
988 final Activity activity = getActivity();
989 return new AlertDialog.Builder(activity)
994 activity.finish();
1024 Activity activity = parent.getActivity();
1025 if (activity != null) {
1026 activity.finish();