Android 7.0及以上打開相機,裁剪問題(私有文件的訪問權限,兼容小米)

在Android7.0以前,若是你想調用系統相機拍照能夠經過如下代碼來進行:html File file=new File(Environment.getExternalStorageDirectory(), "/temp/"+System.currentTimeMillis() + ".jpg"); if (!file.getParentFile().exists())file.getParen
相關文章
相關標籤/搜索