init camera in onResume