Some Android phones add two identical photos to the gallery after launching the camera app and getting the result -


my app starts camera app this:

localimageuri = getcontentresolver().insert(                    mediastore.images.media.external_content_uri,                    new contentvalues());  intent cameraintent = new intent(mediastore.action_image_capture)                       .putextra(mediastore.extra_output, localimageuri);  startactivityforresult(cameraintent, return_from_camera); 

the camera app starts, take photo, confirm photo, , returned app expected. on phones, such samsung sidekick, there 2 identical photos in camera's gallery after workflow. on other phones, works without leaving duplicate photos in gallery.

is there way change code avoid duplicate photos on phones?


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -