开发者

how to accees Environment.getExternalStorageDirectory() when user connected to system

I am working on email application. My application will create some files in the Sd card.

I am using

   Environment.getExternalStorageDirectory() 

to store the files in SD card. But I have observed that some times when my device connected to my computer I am unable to access my files.

Please suggest what's the path I need to use so that my files must always accessible.

I want to store my files only i开发者_运维技巧n Sd card.


I think when the SD card is mounted you cannot access it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜