String a="file://"+Environment.getExternalStorageDirectory().getPath()
+"/DCIM/image/";
Uri uri =Uri.parse(a) ;
我是这样写的 但是不行 该怎么写呢?

怎么获得指定文件夹的URI?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
- henghanan 2012-10-16 13:37关注
额,有点想不明白的是,你既然已经知道文件夹的路径了,直接拼接就行了呀
比如:String folderPath = "F:/test";
则:String uri = "file:/" + folderPath + "/";
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报