[英]How to get File Uri from file path? (Scoped Storage)
I want to edit a text file stored at a certain path I know of.我想编辑存储在我知道的某个路径中的文本文件。 I just want MediaStore Uri for that file path so that I can create a write request with MediaStore.createWriteRequest().
我只想要该文件路径的 MediaStore Uri,以便我可以使用 MediaStore.createWriteRequest() 创建写入请求。 How can I do that?
我怎样才能做到这一点?
这个对我有用
Uri.fromFile(File(filepath))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.