title: StartActivity - ActionView cannot open document - Xamarin
body: <pre><code>var storage_path = Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryDownloads).AbsolutePath;
  
  filePathh = Path.Combine(storage_path, filename); 
  
  Java.IO.File file = new Java.IO.File(filePathh); 
  Console.WriteLine("Downloaded file PATH: " + Query.filePathh);
  
  Intent open = new Intent(Intent.ActionView);
  open.AddFlags(ActivityFlags.GrantReadUriPermission);
  open.SetFlags(ActivityFlags.NewTask);
  
  Context context = Android.App.Application.Context;
  
  Android.Net.Uri fileUri = FileProvider.GetUriForFile(context, "com.companyname.Login.provider", file).NormalizeScheme();
  Console.WriteLine("File uri: " + fileUri.Path);
  open.SetDataAndType(fileUri, "*/*");
  
  Intent intentC = Intent.CreateChooser(open, "Open With");
  intentC.AddFlags(ActivityFlags.GrantReadUriPermission);
  
  intentC.SetFlags(ActivityFlags.NewTask);
  Android.App.Application.Context.StartActivity(intentC);
  </code></pre>
  
  <p><br>
  When trying to open a file (when choosing an app to open it - like Docs or HTML reader) we get error File Not Found.
  <br></p>
  
  <p>We saw that <strong>filePathh</strong> and <strong>fileUri</strong> are different and are not pointing to the same location.
  <br>
  For storage_path:
  storage/emulated/0/Download/How_to_initialize_your_Xamarin_app_to_use_AppConnect_C#_APIs.pdf</p>
  
  <p>For Uri path:
  /external/Download/How_to_initialize_your_Xamarin_app_to_use_AppConnect_C#_APIs.pdf</p>