an activity that creates a camera in the onResume method using a preview class