title: How to get file path on any select file on Xamarin Android
body: <p>How can I get the path from any file that I get from local or external storage on android? Here is my code:</p>
  
  <pre><code>                Intent = new Intent(Intent.ActionOpenDocument);
                  string[] mimetypes =
                   {
                      "application/pdf", "image/png", "image/jpeg", "image/tiff", "application/msword",
                      "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                      "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
                  };
                  Intent.PutExtra(Intent.ExtraMimeTypes, mimetypes);
                  Intent.SetType("*/*");
  
                  Intent.SetAction(Intent.ActionGetContent);
                  Intent.AddCategory(Intent.CategoryOpenable);
  
                  StartActivityForResult(Intent.CreateChooser(Intent, "Select file"), Constant.PickPDFId);
  </code></pre>
  
  <p>And the OnActivityResults I got:</p>
  
  <pre><code>         base.OnActivityResult(requestCode, resultCode, data);
  
          if (requestCode == Constant.PickPDFId &amp;&amp; resultCode == Result.Ok &amp;&amp; data != null)
          {
              var FilePath= data.Data.Path;
  
          }
  </code></pre>
  
  <p>The FilePath has a colon in between <em>'document/3137-3837:Screenshots/Screenshot_2018.png</em> . How can I get the valid path without the colon?</p>