摘要: 在一些时候,需要卸载SD卡来测试东西,但眼前的没有合适的手机让你拔掉SD卡,那么可以通过以下代买来卸载SD卡。代码是private void doUnmount() { IMountService mountService = getMountService(); String extStoragePath = Environment.getExternalStorageDirectory().toString(); try { mountService.unmountVolume(extStoragePath, true, tr... 阅读全文
posted @ 2012-09-26 10:49 chlips 阅读(1083) 评论(0) 推荐(0) 编辑