Android ACTION_IMAGE_CAPTURE Intent

后端 未结 14 1987
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 02:04

We are trying to use the native camera app to let the user take a new picture. It works just fine if we leave out the EXTRA_OUTPUT extra and returns the small B

14条回答
  •  北海茫月
    2020-11-22 03:09

    I had the same problem where the OK button in camera app did nothing, both on emulator and on nexus one.

    The problem went away after specifying a safe filename that is without white spaces, without special characters, in MediaStore.EXTRA_OUTPUT Also, if you are specifying a file that resides in a directory that has not yet been created, you have to create it first. Camera app doesn't do mkdir for you.

提交回复
热议问题