Android, MediaStore.EXTRA_OUTPUT, stores two images

Possible duplicate:
The built-in camera using the optional MediaStore.EXTRA_OUTPUT stores images twice (in my folder and by default)

I use: intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile("..path/filename.png") ) in combination with the corresponding methods.

It works in that I get the image stored in a file at the specified path. The problem is that it also saves the image in a different encoding of the date of the filename in /sdcard/DCIM/Camera/

Is there a way to prevent this unwanted second file from being created?

+4
source share

Source: https://habr.com/ru/post/1381483/


All Articles