Reputation: 992
I'm really curious if it was possible to save a taken picture into Android's specific folder structure. To be more precise: I don't want it to be saved on the user's SD card but in the internal app folder (data/data/my.package/files). Is this possible and a reasonable step (with regard to the memory capacity of the phone)?
Upvotes: 2
Views: 2791
Reputation: 6972
try this. If you in activity do next:
OutputStream is = openFileOutput("image.png");
Here you have OutputStream to files/ dir in app folder.
The method openFileOutput is form Context class. See this link: http://developer.android.com/reference/android/content/Context.html#openFileOutput(java.lang.String, int)
Hope it help you!
Upvotes: 3