After chapter 19,with bug fixed:camera.startpreview()