Android的:如何检测双SD卡Android、SD

2023-09-07 00:23:49 作者:我的人别碰别摸别惦记

有没有什么办法识别,如果有两个SD卡的设备?

Is there any way of identifying if there are two sd-cards in a device??

编辑:

我发现,此刻,没有办法内部存储和外部真实SD卡之间的区别的。在像三星Galaxy Tab(7英寸)某些设备,该系统采用的内部存储(通常为16GB)是作为外部存储。不幸的是没有办法的内部存储和secondar /外部/ SD卡存储之间的区别。如果有人认为这是可能的(对于蜂窝和previous版本),写到这里,我会证明这一点。

I have found that at the moment, there is no way of distinguishing between internal storage and true external SD card. In some devices like Samsung Galaxy Tab (7 inches), the system takes the internal storage (usually 16gb) to be as an external storage. Unfortunately there is no way to distinguish between internal storage and secondar/external/sd-card storage. If someone thinks it is possible (for honeycomb and previous versions), write here and I'll prove it.

推荐答案

我不相信有一种方法来检查双SD卡,但有些设备做有2个类型的外部存储。例如,我知道一些摩托罗拉设备,内部辅助存储与访问 / SD卡-EXT 。你可以检查是否存在此目录(我知道其他设备与辅助存储还可以使用 -ext 追加),并作出相应的反应。

I don't believe there is a way to check for dual sd-cards, but some devices do have 2 types of external storage. For example, I know on some motorola devices, the internal secondary storage is accessed with /sdcard-ext. You could check to see if this directory exists (I know that other devices with secondary storage also use the -ext append) and react accordingly.