简体   繁体   中英

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(). How can I do that?

这个对我有用

Uri.fromFile(File(filepath))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM