views:

29

answers:

1

I have to create a multiple directory like this path("images/wallpaper/flower"). It should be stored in the External Memory of the phone.

How to do it? Any Idea?

A: 

Just get the SDcard path using Environment.getExternalStorageDirectory(); and then create the dir structure with the Java's File class.

You should know that the sdcard can be unmounted so check it's status first.

Macarse
@Macarse: Thanks. i can create the directories. But how to create a image file inside that directory?
Praveen Chandrasekaran
You are asking how to get images from internet and saving them on the sdcard?
Macarse