android - duplicated image in original gallery folder when having crop function -
i working on importing images gallery, , discovered
with no crop function: intent intent = new intent(); intent.settype("image/*"); intent.setaction(intent.action_get_content); startactivityforresult(intent.createchooser(intent,"select picture"), 10002);
with crop function: intent intent = new intent(); intent.settype("image/*"); intent.putextra("crop", "true"); intent.putextra("aspectx", 1024); intent.putextra("aspecty", 800); intent.putextra("outputx", 1024); intent.putextra("outputy", 800); intent.putextra("scale", true); intent.putextra("return-data", false); intent.putextra("outputformat", bitmap.compressformat.jpeg.tostring()); intent.putextra("nofacedetection", true); // no face detection intent.setaction(intent.action_get_content); startactivityforresult(intent.createchooser(intent,"select picture"), 10002);
question: when there no crop function, final imageview can display selected image.
when there crop function, final imageview can display selected image, folder image picked, has duplicated original image.
how duplicated image removed? lot!
android image android-intent crop
No comments:
Post a Comment