我一直在嘗試以/sdcard編程方式創(chuàng)建目錄,但無法正常工作。以下代碼始終輸出directory not created.boolean success = (new File("/sdcard/map")).mkdir(); if (!success) { Log.i("directory not created", "directory not created");} else { Log.i("directory created", "directory created");}
- 3 回答
- 0 關(guān)注
- 793 瀏覽
添加回答
舉報(bào)
0/150
提交
取消