please add the permission for Allows an application to write to external storage.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Allows an application to read from external storage.
Any app that declares the WRITE_EXTERNAL_STORAGE permission is implicitly granted this permission.
This permission is enforced starting in API level 19. Before API level 19, this permission is not enforced and all apps still have access to read from external storage. You can test your app with the permission enforced by enabling Protect USB storage under Developer options in the Settings app on a device running Android 4.1 or higher.