How to recover deleted photos from Android Gallery code example
Example: Delete captured image from gallery android
1) Do not use EXTRA_OUTPUT. The image/photo always will go to the gallery location.
2) Copy the file from the gallery location to the desired location.
3) Remove (with the upper code) the file from gallery.