Camera Intent Onactivityresult Code Saves (blank) Image Even If Photo Was Not Accepted By User
When the user clicks the cross to not accept the photo, it ends the intent in the same way it does when they accept the photo they took. It saves a file to the device gallery. But
Solution 1:
Aren't you creating file with createImageFile() ? You may save photoFile and on result!=RESULT_OK delete it
By the way, camera apps(even default) may return wrong result. Check it in logs. If they do, just don't rely on result & check created file's size. If ==0 - delete it
Post a Comment for "Camera Intent Onactivityresult Code Saves (blank) Image Even If Photo Was Not Accepted By User"