开发者

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

开发者 https://www.devze.com 2023-04-03 16:31 出处:网络
I am working on email application. My application will create some files in the Sd card. I am using Environment.getExternalStorageDirectory()

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

精彩评论

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