FORUMS
Remove All Ads from XDA

Saving files to external storage, custom directory.

389 posts
Thanks Meter: 73
 
By coyttl, Senior Member on 20th June 2019, 11:37 PM
Post Reply Email Thread
Hey all -
Have a question.
I want to call the Camera intent, but have the camera save to a custom file.
I've read this: https://developer.android.com/traini...xternalStorage
And the only two options it gives is 'Save to a public directory" (like \Pictures, \Ringtones, etc), or "Save to a Provate Directory".

The latter sounds like it's what I want to do - but mentioned 'getExternalFilesDir()' function retrieves my application's custom data directory (which is (1)removed when the app is uninstalled, and (2)difficult to find when the phone is plugged into a computer - to copy the saved files from.)

What I'd REALLY wanna do is save my files to a root directory in the external storage. (Like, "/<sdcard mount path>/PicLogger/<file>").

Anyone know of a guide, or examples that show how to save images through the camera into a custom directory like this?
Thanks!
-Mike
 
 
Post Reply Subscribe to Thread

Tags
camera intent, external storage

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes