开发者

Creating Directories to categorize the images based on its type in Java/Android?

开发者 https://www.devze.com 2023-01-14 07:16 出处:网络
I have to create a multiple directory like this path(\"images/wallpaper/开发者_Go百科flower\"). It should be stored in the External Memory of the phone.

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

How to do it? Any Idea?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消