[英]Get external sdcard in android phone
I got the both the external and internal(phone memory ) SD
card in listing in my application but along with that i got some more folder and i don't want them so how can i limit to external and internal SD
card only in listing... 我在应用程序列表中同时获得了外部和内部(电话存储器)
SD
卡,但与此同时,我又得到了更多文件夹,我不希望它们出现,所以我怎么能只在列表中限制外部和内部SD
卡。 ..
i provided the root directory which is /storage
and it displays whole the folder... 我提供了
/storage
的根目录,它显示了整个文件夹...
or can some one tell me how to get external sd card programmaticaly 或者有人可以告诉我如何以编程方式获取外部SD卡
i have tried the usual way File file = Environment.getExternalStorageDirectory();
我已经尝试了通常的方法File
file = Environment.getExternalStorageDirectory();
given by android but it returned only internal path . 由android给定,但它仅返回内部路径。
Environment.getExternalStorageDirectory()
it returns sd card path but depends on the device Environment.getExternalStorageDirectory()
返回SD卡路径,但取决于设备
for better under standing check Find an external SD card location 更好地进行站立检查查找外部SD卡位置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.