CameraActivity.java refactoring.