简体   繁体   English

在Android中以编程方式安装和卸载存储卡

[英]Memory card Mount and Unmount programmatically in android

Is there any possible to mount, unmount the memory card programmatically in android . 有没有可能以编程方式在android中安装,卸载存储卡。 I searched lot of websites, but still not get accurate solutions for my problems .Please any one help me. 我搜索了很多网站,但仍无法获得针对我问题的准确解决方案。请任何人帮助我。 Give some ideas 提出一些想法

No, this cannot be done. 不,这无法完成。 If it were, people could write malicious code to mount and unmount SD card from the phone.It was a good security decision to not allow apps to mount and unmount SD card. 如果是这样,人们可能会编写恶意代码来从手机上安装和卸载SD卡。这是一个很好的安全决定,不允许应用程序安装和卸载SD卡。 We can able to only READ and WRITE data. 我们只能读取和写入数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM