如何永久挂载SD卡?SD

2023-09-07 13:08:24 作者:做啡

有什么办法将数据写入到SD卡,当卡被安装为通过USB盘?

Is there any way to write data to a sdcard, when the card is mounted as a disc via USB?

如果我拔掉它,一切都很好。我该如何解决这个问题?任何人的想法或样品code?

If I unplug it, everything is fine. How do I solve this problem? Anybody ideas or sample code?

推荐答案

Android版只允许一个安装在同一时间,所以如果你通过USB连接的设备,并为您的PC,Android的卸载该卡从提供卡作为坐骑操作系统。该行为不能由一个应用程序进行更改,不应该在数据安全性的名称进行更改。

Android allows only one mount at a time, so if you connect your device via USB and provide the card as a mount for your pc, android unmounts the card from the OS. That behavior cant be changed by an application and shouldnt be changed in the name of the data security.