安卓:安装卸载和格式的SD卡 [英] Android:mount unmount and format sdcard

查看:492
本文介绍了安卓:安装卸载和格式的SD卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有Android的冰淇淋三明治给编程格式,装载和卸载SD卡的可能?

Is there any possibility given in Android Icecream-sandwich to programatically format,mount and unmount sdcard ?

推荐答案

相关API的是 com.androidserver.MountService (它不是新的),但这个类是隐藏并且不适用于SDK应用程序。从理论上讲,你可以得到 MOUNT_FORMAT_FILESYSTEMS 许可(它不是一个系统权限),但是你不能使用它,因为API的不公开。

Related API's are in com.androidserver.MountService (it's not new), but this class is hidden and not available for SDK applications. In theory, you can get the MOUNT_FORMAT_FILESYSTEMS permission (it is not a system permission), but you cannot use it since the API's are not public.

这篇关于安卓:安装卸载和格式的SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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