Yeah, as you are trying to write the image on the SDCARD and hence you need to give the permission to the app. Please let us know the issues/exact error message that you are getting on the console of logcat. So that the exact suggestion can be given t o you to follow

Hi rjuy, I think the problem may be the permission <uses-permission android:name = "android.permission.WRITE_EXTERNAL_STORAGE"/> and one more suggestion try to use getExternalStorage() method rather than the hardcoded thing like sdcard/