android: saving files and ContentValues

view story

http://stackoverflow.com – Hi all I am now learning how to save image to specific folder, and have researched some examples. I would like to save an image to a specific folder, but then I also see some examples are with some additional ContentValues further added as follows. I have tried combined then and run but the device then displays the error message instead. Is it unable to save the file together with the ContentValues to a specific folder? The error is gone if the following line of code is removed: Uri uri = getContext().getContentResolver().insert(Images.Media.EXTERNAL_CONTENT_URI, values); Also, (HowTos)