In addition, please consider modifying galleryBtnPressed() to prevent it from initiating multiple activities in rapid succession.