To avoid freezes at the starting, add a loading page and we call the camera after the activity is loaded.