Android的SD卡问题 [英] Android SD card issues

查看:166
本文介绍了Android的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.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.

感谢所有协助。

这篇关于Android的SD卡问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆