title: Loader throwing error 2035: URL Not Found even when file exists
body: <p>I am writing an android app that will import an xml file from local storage. I am using the Loader class to get the file. When I try to load any given file off of local storage (/sdcard) I get the error URL Not Found.</p>
  
  <p>I know the file exists and that the file path I provide is in fact correct. I know this because I traced <code>testFile.exist</code> and it returns true, meaning the path is correct and the file exists. </p>
  
  <p>I have also ensured that I have storage permissions on the device by ensuring that <code>File.permissionStatus = true</code>. I have used remote debugging to see if it was possible that the internal storage is unmounted when connected via usb, but I receive the same error. I used URLLoader too, I get the same error. </p>
  
  <p>I have also checked multiple paths to the same place, such as:</p>
  
  <ul>
  <li><code>/sdcard/filename</code></li>
  <li><code>/mnt/sdcard/filename</code></li>
  <li>file:////sdcard/filename</li>
  <li>file:////mnt/sdcard/filename. </li>
  </ul>
  
  <p>I can successfully create directories, but for some odd reason Loader will not recognize any file URL in my internal storage. I don't know if it helps at all, but I am using a Samsung Galaxy S8 +.</p>
  
  <p>Here is a very simplified code snippet that I am using to retrieve my file from my phone's internal storage:</p>
  
  <pre><code>var testFile:File = new File("file:////sdcard/sheet.xml");
  trace(testFile.nativePath);
  trace(testFile.exists);
  var fileLoader:Loader = new Loader();
  fileLoader.load(new URLRequest(testFile.nativePath));
  </code></pre>
  
  <p>Here is the output of the code above:</p>
  
  <pre><code>/sdcard/sheet.xml
  true
  Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
  </code></pre>
  
  <p>To the people who say I need to add event listeners, I did and I got exactly what error it throws even without the event listeners looking for the IO error. I could not find anyone who has this specific problem. I'm guessing its either an android problem where the directory is a different path or protected, or its the way the File object handles my path.</p>