Have you tried opening from File.
That folder is much more open with permissions.
On Android that maps to:
Message was edited by: DonMitchinson Added actual path on Android
Thanks for that, I found that by copying the file from the application dir to the apllication storage dir I was indeed able to get a local file to load.
// This copies a single file into a subdir of appStorageDir
var source:File = File.applicationDirectory.resolvePath("eula.txt");
// create file(s) in a subdir of appStorageDir to simplify cleanup
var destination:File = File.applicationStorageDirectory.resolvePath("docs/eula.txt");
// now do the copy and create a ref to our file that a browser will understand
var initialURL:String = "file://" + destination.nativePath ;
However, I also discovered that stagewebview will not load a pdf on an android device, especially Honeycombe 3.
I tried converting the pdf to a swf file and although it loads, it does not view correctly, I would be interested if anyone else as tried to display a swf file in stagewebview but from I have read it doesnt seem possible.
I read in multiple places that hardware acceleration must be enabled for this to work, but complications are everywhere.
here's a guy that uses Android inherent functionality. I do not understand it, but maybe you will
Found a couple of other guys that did some java hacks, but this forum post is the best.
and this guy gives his specific java code he used as a wrapper to open PDFs from Air on Android