Quantcast
Channel: BlogoSfera » DATA
Viewing all articles
Browse latest Browse all 64

Tell the Camera Intent to save the taken image

$
0
0

I’m doing this: intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); final File storage = Environment.getExternalStorageDirectory(); final Uri uri = Uri.fromFile(new File(storage, System.currentTimeMillis() + ".jpg")); intent.putExtra(MediaStore.EXTRA_OUTPUT, uri); startActivityForResult(intent, id); and to handle get that photo, I do this: private String getLastImagePath() { final String[] imageColumns = { MediaStore.Images.Media._ID, MediaStore.Images.Media.DATA }; final String imageOrderBy = MediaStore.Images.Media._ID + " DESC"; final [...]

The post Tell the Camera Intent to save the taken image appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 64

Trending Articles