Write Following Line into your Oncreate Method:-
File wallpaperDirectory = new File("/sdcard/Wallpaper");
wallpaperDirectory.mkdirs();
Add below Uses-Permission into your AndroidManifest.xml File:-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Now Run Your Project the Wallpaper Folder is Created in Your Sdcard.
Enjoy :-)
Don’t forget to provide feedback or follow this blog, if you find this blog is useful.
Post is helpful for me. Thank you for this tutorial.........
ReplyDeleteThanks, but the code does not work for marshmallow... Can u please help, on how to read or write a file/folder in marshmallow
ReplyDeletethank you
ReplyDeletenot working for marshmallow
ReplyDeletenot working for marshmallow
ReplyDeleteThis comment has been removed by the author.
ReplyDeletethanks
ReplyDeleteSet An Alert For Dollar To Real To Receive An Email When The Exchange Rate Changes. Alternatively, Bookmark The Page And Check Back Here Regularly.
ReplyDelete