Android Samsung: Camera app won't return intent.getData()

前端 未结 2 1884
执笔经年
执笔经年 2020-12-10 06:36

I am developing an app, where an image taken from the native camera app. is to be shown to the user. The code I did is:

/* Intent */
Intent intent = new Inte         


        
2条回答
  •  感动是毒
    2020-12-10 07:10

    See Specify filename for picture to be taken for code to specify an EXTRA_OUTPUT parameter for the Intent which lets you specify a filename for the picture. Remember the filename when the activity result is called and use that if the intent.getData is NULL

    And if you read the other comments in that bug report, you'll realize how many problems that picture taking on Android has.

提交回复
热议问题