java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1888, result=0, data=null} to activity

前端 未结 12 1214
你的背包
你的背包 2020-11-29 01:31

My app allows the user to press a button, it opens the camera, they can take a photo and it will show up in an imageview. If the user presses back or cancel while the camera

12条回答
  •  一生所求
    2020-11-29 02:32

    this is my case

    startActivityForResult(intent, PICK_IMAGE_REQUEST);

    I defined two request code PICK_IMAGE_REQUESTand SCAN_BARCODE_REQUEST with the same value, eg.

    static final int BARCODE_SCAN_REQUEST = 1;

    static final int PICK_IMAGE_REQUEST = 1;

    this could also causes the problem

提交回复
热议问题