Check if android.permission.WRITE_EXTERNAL_STORAGE is in AndroidManifest.xml. Also, add checks in your code to see if the storage is available to write before trying to write. And last: create a folder to put your files inside.
Solutions on the web
Be the first to provide a solution to this exception. Write a tip to help other users and build your expert profile.