Is there a way to take a picture from camera programmatically from my Android app, without writing the file to external storage? I’m trying to minimize the permissions I require from my app users, in particular the “write to external storage” one. I don’t require the pic to be saved to disk, I’m totally fine if the pic is destroyed when I close my app. And it seems a bit of an overkill to ask users a total write permission to their disk just for taking a picture.
I’ve seen that from API 19 you could probably avoid that permission by writing the file to the app directory given by getExternalFilesDir(). Are there other ways? Maybe without passing from disk memory at all?