Android的SD卡问题问题、Android、SD

由网友(夜袭寡妇村)分享简介:我currenlty有开发一个APP,并使用外置SD卡的一些问题。I currenlty have a few problems with developing an APP and using the external SD card.第一个问题是,我检查是否有安装在SD卡。即使没有插入SD卡,此函数返回真。我用/...

我currenlty有开发一个APP,并使用外置SD卡的一些问题。

I currenlty have a few problems with developing an APP and using the external SD card.

第一个问题是,我检查是否有安装在SD卡。即使没有插入SD卡,此函数返回真。我用/试过以下code:

The first problem is that I check if there is a SD card mounted. This function returns a true even if there is no SD card inserted. I've used/tried the following code: http://stackoverflow.com/a/12721994 的http://tsicilian.word$p$pss.com/2012/04/24/android-persistence-external-storage-sd-card/ http://stackoverflow.com/a/12721994 http://tsicilian.wordpress.com/2012/04/24/android-persistence-external-storage-sd-card/

从developer.android.com

from developer.android.com

每个Android兼容设备支持共享外部存储,你可以用它来保存文件。这可以是一个可移动的存储介质(如SD卡)或内部(不可移动)的存储。保存到外部存储器中的文件是世界可读和可以由用户当它们使USB大容量存储到计算机上传输文件进行修改。

Every Android-compatible device supports a shared "external storage" that you can use to save files. This can be a removable storage media (such as an SD card) or an internal (non-removable) storage. Files saved to the external storage are world-readable and can be modified by the user when they enable USB mass storage to transfer files on a computer.

也许这是一个问题?

我使用的是LG L5(E610)

I'm using a LG L5 (E610)

我已经添加了正确的权限清单文件。

I've added the correct permission to the manifest file.

我的其他问题可能与此有关问题

My other issue could be related to this issue

任何帮助非常多AP preciated。谢谢你。

Any help is very much appreciated. Thank you.

推荐答案

有它固定的,是自己的问题。

Got it fixed, was own problem.

感谢所有协助。

阅读全文

相关推荐

最新文章