Reputation: 105
I am writing an mobile app using Flutter. I want to change some of the default file paths existing in my device. For example, whenever I click a picture using my phone, it is stored in the default folder.
/storage/emulated/0/DCIM/Camera
I want to change the default file path so when I click a photo, it gets stored in a location of my choice.
Is there anyway I can do that using Flutter?
Upvotes: 0
Views: 56
Reputation: 1007296
Is there anyway I can do that using Flutter?
No. There is no way of doing that without Flutter, either.
Where a camera app stores its photos is up to the developers of that camera app. That may be in the location that you specified. It may be somewhere else on the device. It may be not on the device at all, but instead sent directly to a server. Regardless, other apps do not get to control that behavior for when the user uses the camera app directly.
If your app is asking a camera app to take a picture using an ACTION_IMAGE_CAPTURE
Intent
, you can request that the camera app store the resulting photo in a particular location, using EXTRA_OUTPUT
.
Upvotes: 1