How to create a directory in Android?

前端 未结 4 1001
礼貌的吻别
礼貌的吻别 2021-01-13 05:16

Everything is in the question. Here is my code :

    private void createDirectory(File currentDirectory) {
  File f = null;
  try {

   f = new File(current         


        
4条回答
  •  Happy的楠姐
    2021-01-13 05:37

    You're going to need to add

    
    

    to your manifest file to tell Android to ask the user for your application to be allowed to.

提交回复
热议问题