Okay, so you do have code for saving an image back to the sdcard before sharing it.  That's what I was worried was missing. I think it might be cleaner to separate the image saving code from the image resizing code, however. Is saving the right thing to do every time this module is used? If so then consider renaming to resizeImageAndSave() or something.