开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜