Uri parse
Question: To convert a path to Uri
Uri
Answer:
To avoid nasty bug:
for file use Uri.fromFile(new File(filePath))
Uri.fromFile(new File(filePath))
for directory use Uri.parse(directoryPath)
Uri.parse(directoryPath)