in my application, I create a new directory this way;
File mydir = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), "/my_directory"); if (!mydir.exists()) { mydir.mkdirs(); }
and it works well, but Android Studio (0.8.9) just keeps telling me about this warning:
The result of "File.mkdirs ()" is ignored
Can anyone explain to me why? Thanks.
source share