How do you check that a uri string is valid (that you can feed it to the Uri constructor)?
So far I only have the following but for obvious reasons I\'d prefer a les
In your case the uri argument is an absolute path which refers to a file location, so as per the doc of the method it returns false. Refer to this