android2.3系統(tǒng)報(bào)錯(cuò)問(wèn)題解決
android2.3系統(tǒng)按照老師的做法報(bào)錯(cuò),必須在初始化Camera的時(shí)候設(shè)置 mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);同時(shí)在預(yù)覽相機(jī)效果中cam.setDisplayOrientation(90);這個(gè)方法之前設(shè)置cam.stopPreview();有遇到此問(wèn)題的可以解決。http://stackoverflow.com/questions/20259063/set-display-orientation-failed
2015-12-28
用4.0以上吧