flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Bossu <pbo...@gmail.com>
Subject Re: Show a pdf in a Flex mobile app
Date Fri, 08 Feb 2013 20:53:35 GMT
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 <jonbcampos@gmail.com
> >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 <pbossu@gmail.com>
> 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 <
> lazzari.angelo@gmail.com
> >> >wrote:
> >>
> >> > Thank you very much!!I will!
> >> >
> >> > Angelo
> >> >
> >> > Sent from my 
> >> >
> >> > On Feb 8, 2013, at 0:59, Jonathan Campos <jonbcampos@gmail.com>
> 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 <
> >> lazzari.angelo@gmail.com
> >> > >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 <bigosmallm@gmail.com>
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 <
> >> > >> lazzari.angelo@gmail.com
> >> > >>>> wrote:
> >> > >>>
> >> > >>>> I'm sorry.
> >> > >--
> Jonathan Campos
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message