开发者

Saving camera data to cache when launched via intent

I am launching the Camera application via an Intent and saving the image temporarily to the SD card using the EXTRA_OUTPUT option. The URI passed needs to point to a location on external storage. I also need to provide a URI if I want the full-size image to be returned.

I would like to account for the fact that the user might not have an SD card mounted.

It is my understanding that due to the security measures Android imposes, the Camera application does not have write permissions to my app开发者_StackOverflowlication's cache folder.

Is there any way around this via some intermediary steps? Or perhaps there is a better approach altogether?

I know that I can use the Camera class to implement my own camera within my application, but I would lose the features the stock Camera application provides.

Thank you!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜