Skip to content

Instantly share code, notes, and snippets.

@sunils34
Created March 25, 2013 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunils34/5235247 to your computer and use it in GitHub Desktop.
Save sunils34/5235247 to your computer and use it in GitHub Desktop.
ContentValues values = new ContentValues();
values.put(MediaStore.Images.Media.TITLE, BufferUtils.getOutputImageFilename());
sFileUri = getActivity().getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);
//sFileUri = BufferUtils.getOutputMediaFileUri(BufferUtils.MEDIA_TYPE_IMAGE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, sFileUri); // set the image file name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment