Android Camera开发:扫描二维码,周期性循环自动聚焦auto focus挂掉原因分析(preview is not enabled)
问题背景:要让Camera循环聚焦,聚焦完成后进行拍照,在拍照的数据里截取出一定区域的数据。在initCamera里设置聚焦模式:ListallFocus=myParam.getSupportedFocusModes();for(Stringff:allFocus){Log.i(tag,ff+"...FOCUS...");}if(allFocus.contains(Camera.Parameter