Convert paths that start with "content//:" or "/data/.." to URI
<p>I have two types of file paths, one I get from my sqlite db and one I derive locally. </p>

<p>The one that comes from db has the following format "content://mnt/sdcard/data/download/image1"
And the one locally is "/data/data/com.mytestapp/files/image1.png"</p>

<p>I need to convert both to URI without knowing which one i get. Is there a way to do it?</p>

<p>From trial and error it seems that Uri.parse does not work property on the second type as it does not add the prefix file:/// to it.</p>

<p>URI.fromFile does not work on the first type as it as it becomes file:///content:/.....etc</p>

<p>Any help?
Thanks</p>
