디렉토리를 생성하려고하는데 예외를 발생시키지 않고 코드가 실행되지만 디렉토리가 생성되지 않습니다 (Mac의 Android File Transfer 앱에서 확인). 로그에 항목이 없습니다. 여기서 뭐가 잘못 됐어?디렉토리가 생성되지 않았습니다.
File path = getFilesDir();
File filenew = null;
try {
filenew= new File(path+"/equation");
filenew.mkdirs();
} catch (Exception e) {
e.printStackTrace();
}
getFilesDir을() getPath + "/방정식 " –
가능한 두 (안드로이드에서 디렉토리를 만드는 방법)의 plicate (http://stackoverflow.com/questions/4776426/how-to-create-a-directory-in-android) – duggu
'File filenew = new File (getFilesDir), "equation");) filenew.mkdirs()' –