title: How to select multiple images from gallery in Xamarin Forms and save to desired file path?
body: <p>I have the following code to open gallery.</p>
  
  <pre><code>var imageIntent = new Intent(
  Intent.ActionPick);
  imageIntent.SetType("image/*");
  mageIntent.PutExtra(Intent.ExtraAllowMultiple, true);
  imageIntent.SetAction(Intent.ActionGetContent);
  StartActivityForResult(
  Intent.CreateChooser(imageIntent, "Select photo"), 1);
  </code></pre>
  
  <p>And I stuck at the following code which is the OnActivityResult in my MainActivity.cs</p>
  
  <pre><code>protected override void OnActivityResult(int requestCode, Android.App.Result resultCode, Intent data)
      {
          base.OnActivityResult(requestCode, resultCode, data);
  
          if((requestCode==1)&amp;&amp;(resultCode==Result.Ok))
          {
              if(data!=null)
              {
                  ClipData clipData = data.ClipData;
                  if(clipData!=null)
                  {
                      for (int i = 0; i &lt; clipData.ItemCount; i++)
                      {
                          ClipData.Item item = clipData.GetItemAt(i);
                          Android.Net.Uri selectedImage = item.Uri;
  
                          //How to convert Android.Net.Uri to a image file?
  
  
                      }
                  }
              }
          }
      }
  </code></pre>
  
  <p>The Android.Net.Uri is something that I never seen before, the path is just like content/android/document/documents/31857. Yes, I can select multiple photo from the gallery, but I just don't know how to convert Android.Net.Uri to an legal image file? My final goal is to save the selected image to my desired file path like storage/emulated/0... Or is there any better way to select multiple images and save to the desired file? Thank you.</p>