Android saving file to external storage

后端 未结 12 749
抹茶落季
抹茶落季 2020-11-22 03:12

I have a little issue with creating a directory and saving a file to it on my android application. I\'m using this piece of code to do this :

String filename         


        
12条回答
  •  误落风尘
    2020-11-22 03:51

    Make sure your app has the proper permissions to be allowed to write to external storage: http://developer.android.com/reference/android/Manifest.permission.html#WRITE_EXTERNAL_STORAGE

    It should look something like this in your manifest file:

    
    

提交回复
热议问题