Folder not created by app in android
- by Ankuj
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.