java.lang.IllegalStateException: Preview mode must have started before you can take a picture

Stack Overflow | rizon | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Android CWAC Camera can't take a photo

    Stack Overflow | 6 months ago | rizon
    java.lang.IllegalStateException: Preview mode must have started before you can take a picture

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Preview mode must have started before you can take a picture

      at com.camera.CameraView.takePicture()
    2. com.camera
      CameraFragment.takePicture
      1. com.camera.CameraView.takePicture(CameraView.java:317)
      2. com.camera.CameraFragment.takePicture(CameraFragment.java:152)
      2 frames
    3. finagle-core
      PhotoFragment.onOptionsItemSelected
      1. com.PhotoFragment.takeSimplePicture(PhotoFragment.java:240)
      2. com.PhotoFragment.onOptionsItemSelected(PhotoFragment.java:123)
      2 frames