I’m using a library that requires me to pass an Uri object as parameter.
Currently I’m doing this:
File file = new File(someFileDir, "test.pdf");
someObject.someFunction(file.toURI());
Note that the File object has the function toURI(). It returns an URI object.
Now my problem is that the function I call needs a Uri parameter, but it’s complaining that I passed a URI object.
Aren’t these things exactly the same? How can I output an Uri object? Or how do I convert URI to Uri?
Just deal with it as a string, It’s easier.