java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1995, result=-1, data=Intent { (has extras) }} to activity {MainActivity}: java.lang.IllegalStateException: failed to get surface

Stack Overflow | Umer Farooq | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.IllegalStateException: failed to get surface

    Stack Overflow | 1 year ago | PL13
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=22, result=-1, data=Intent { (has extras) }} to activity {gr.awm.clrecorder/gr.awm.clrecorder.MainActivity}: java.lang.IllegalStateException: failed to get surface
  2. 0

    MediaRecorder.GetSurface() returning null

    Stack Overflow | 9 months ago | Umer Farooq
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1995, result=-1, data=Intent { (has extras) }} to activity {MainActivity}: java.lang.IllegalStateException: failed to get surface

    Root Cause Analysis

    1. java.lang.IllegalStateException

      failed to get surface

      at android.media.MediaRecorder.getSurface()
    2. Android Platform
      MediaRecorder.getSurface
      1. android.media.MediaRecorder.getSurface(Native Method)
      1 frame