Search code examples
androidcamerastore

Correct path to store photos from Cam?


I'm currently developing a WebCam app, which basically stores a picture in a defined time period (like one photo per minute). If for some reason the upload to an external web server fails, I want to temporarily store that photo in the file system.

Is there any convention about where to store those temporary files?


Solution

  • Yes, there is. It's described in the data storage document in the dev guide. You're probably especially interested in the Internal Storage and External Storage sections.