Folder not created by app in android

Posted by Ankuj on Stack Overflow See other posts from Stack Overflow or by Ankuj
Published on 2012-10-26T10:50:35Z Indexed on 2012/10/26 11:00 UTC
Read the original article Hit count: 204

Filed under:
|

I am creating a folder through my app

File direct_playlist = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + PLAYLIST_PATH);

            if(!direct_playlist.exists())
             {
                 if(direct_playlist.mkdir()); //directory is created;

             }

Even though the command executes perfectly I can not see the folder in Explorer. I have also given permission to my app in the manifest.xml

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

When I try to access this folder my app crashes as the folder is not present.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-file