Showing posts with label How to Create Folder Programmatically into Sdcardhow to create folder programmatically into sdcard in emulator in android?. Show all posts
Showing posts with label How to Create Folder Programmatically into Sdcardhow to create folder programmatically into sdcard in emulator in android?. Show all posts

Monday, 12 December 2011

How to Create Folder Programmatically into Sdcard in Emulator in Android?

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.