title: C# unity script to take and save screenshot in android gallery with library UnityNativeGallery
body: <p>Actually I am trying to take a screenshot and save it into the Android gallery, I am using a opensource library for this purpose "Unity Native Gallery" my code is following:</p>
  
  <pre><code>NativeGallery.Permission permission = NativeGallery.CheckPermission();
  if (permission == NativeGallery.Permission.Granted) {
       Debug.Log("May proceed");
   }
  else {
       Debug.Log("Not allowed");
  }
  // Output ==&gt; "May Proceed"
  
  Debug.Log("Path is "+NativeGallery.GetSavePath("GalleryTest","My_img_{0}.png"));
  //Output ==&gt;  /storage/emulated/0/DCIM/GalleryTest/My_img_1.png
  
  Texture2D ss = new Texture2D( Screen.width, Screen.height, TextureFormat.RGB24, false );
  ss.ReadPixels( new Rect( 0, 0, Screen.width, Screen.height ), 0, 0 );
  ss.Apply();
  
  Debug.Log("Secondlast");
  permission = NativeGallery.SaveImageToGallery( ss, "GalleryTest", "My_img_{0}.png" ) ;
  
  Debug.Log("Done screenshot");
  </code></pre>
  
  <p>but my it never save the screenshot, when i see the console, I get 2 important logs</p>
  
  <p>1.My Debug log "SecondLast" was print on the console but not the last one "Done screenshot"</p>
  
  <p>2.There is an exception printed "UnauthorizedAccessException: Access to the path "/storage/emulated/0/DCIM/GalleryTest/My_img_1.png" is denied."</p>
  
  <p>Important point :- I already already set the Write permissions to External (SDCard) in unity player settings. (actually I try with both settings "Internal" and "External")</p>