Shouldn't code call: intent.addFlag(Intent.FLAG_GRANT_READ_URI_PERMISSION<http://developer.android.com/reference/android/content/Intent.html#FLAG_GRANT_READ_URI_PERMISSION> );
I thought that app sandboxing didn't allow one application to access local storage of another one. Thanks On Fri, Feb 8, 2013 at 9:53 PM, Philippe Bossu <[email protected]> wrote: > So you confirm that the code works from applicationStorage ? > I thought called application needed to have access to the file to read. > > We will try again and give feedback. > > Many thanks for you reactivity and help. > > Regards > > > On Friday, February 8, 2013, Jonathan Campos wrote: > >> by the example the applicationStorageDirectory also works (I forget >> sometimes) >> >> >> https://github.com/jonbcampos/unitedmindset-ane-repo/blob/master/OpenDocument/OpenDocumentApp/src/OpenDocumentApp.mxml >> >> >> On Fri, Feb 8, 2013 at 1:07 PM, Jonathan Campos <[email protected] >> >wrote: >> >> > - due to permissions and whatnot I found that the document had to be in >> a >> > more public area. Copy it over to File.documentsPath and then whatever >> > subpath you may want >> > >> > - make sure that the application is included with the packaging process. >> > You may need to go into properties>packaging>ios>native extensions and >> add >> > it. >> > >> > I run on a MAC so that may make a slight difference in the packaging >> > process. >> > >> > J >> > >> > >> > On Fri, Feb 8, 2013 at 12:14 PM, Philippe Bossu <[email protected]> >> wrote: >> > >> >> Hello, >> >> I am working on the same kind of project. >> >> >> >> We succeeded opening in IOS with StagedWebView and in Mac/PC with >> >> file.openWithDefaultApplication. >> >> >> >> Under Android, we tried with the ANE mentioned by J. Campos but we are >> >> facing some issues: >> >> >> >> - When running under android it says it does not find the file: >> >> - Looking at code , can the launched activity find file in Flex >> >> LocalStorage ? >> >> - So I wonder if StageWebView approach could not be facing this >> >> issue >> >> - We are not able to package IOS application as it says ANE is >> missing >> >> >> >> >> >> Any ideas ? >> >> Thanks. >> >> >> >> On Fri, Feb 8, 2013 at 7:36 AM, Angelo Lazzari < >> [email protected] >> >> >wrote: >> >> >> >> > Thank you very much!!I will! >> >> > >> >> > Angelo >> >> > >> >> > Sent from my >> >> > >> >> > On Feb 8, 2013, at 0:59, Jonathan Campos <[email protected]> >> wrote: >> >> > >> >> > > As stated previously, on iOS the PDF will show in a stagewebview. >> >> > > >> >> > > On Android this doesn't work.... but I have an ANE that will do >> what >> >> you >> >> > > need: >> >> > > https://github.com/jonbcampos/unitedmindset-ane-repo >> >> > > >> >> > > My logic for apps has been: >> >> > > if !support > goto stagewebview and display >> >> > > if supported > open with ane >> >> > > >> >> > > enjoy >> >> > > >> >> > > >> >> > > On Thu, Feb 7, 2013 at 1:53 PM, Angelo Lazzari < >> >> [email protected] >> >> > >wrote: >> >> > > >> >> > >> I tried to write/read from the same place >> >> (applicationStorageDirectory >> >> > >> or userDirectory) but the error that come up is nearly the same: >> >> > >> >> >> > >> Error #2044: Unhandled ErrorEvent:. text=Load error. >> >> > >> However, i'll look up in internet tring to follow your advices! >> >> > >> >> >> > >> Thanks to everyone! >> >> > >> Angelo >> >> > >> >> >> > >> On Thu, Feb 7, 2013 at 8:47 PM, Om <[email protected]> wrote: >> >> > >> >> >> > >>> It looks like you are writing the pdf to: >> >> > >>> >> >> > >>> File.userDirectory.resolvePath("testPageAngelo.pdf"); >> >> > >>> >> >> > >>> But trying to load it from: >> >> > >>> >> >> > >>> >> File.applicationStorageDirectory.resolvePath("testPageAngelo.pdf") >> >> > >>> >> >> > >>> This might be causing the error. >> >> > >>> >> >> > >>> Thanks, >> >> > >>> Om >> >> > >>> >> >> > >>> On Thu, Feb 7, 2013 at 11:33 AM, Angelo Lazzari < >> >> > >> [email protected] >> >> > >>>> wrote: >> >> > >>> >> >> > >>>> I'm sorry. >> >> > >-- >> Jonathan Campos >> >
