java.Lang.RuntimeException, setParameters failed in android(4.1.1) version

后端 未结 3 1901
慢半拍i
慢半拍i 2021-01-13 16:55

I have developed an application which captures a photo when punch in at the time. It\'s working good on Acer tab(capturing image and saves in sdcard). Now when I run the sam

3条回答
  •  Happy的楠姐
    2021-01-13 17:28

    Call the startPreview method before you call takePicture method camera.takePicture(null, null, mCall); and the startPreview method I used is

    private void startPreview() {
            if (cameraConfigured && camera!=null) {
              camera.startPreview();
              inPreview=true;
            }
          }
    

    and through this I solved my issue... It may help you guys.

提交回复
热议问题