1

Is it possible to open a pdf file in a Flex Mobile application?
I have searched but I didn't find anything.

Thank you

Snote
  • 955
  • 3
  • 19
  • 36
  • This maybe relevant [AIR - Open files on Android](http://stackoverflow.com/questions/5298302/air-open-files-on-android-openwithdefaultapplication-alternative) – jBit Jul 29 '11 at 09:01
  • I try with navigateToURL() like in the post be it doesn't go on mobile project :( – Snote Jul 29 '11 at 12:20

2 Answers2

1

Use Document Launcher Native Extension for Android. I tried and it works nice!

Mark
  • 6,762
  • 1
  • 33
  • 50
saasthasoft
  • 123
  • 8
0

You should be able to do this using the StageWebView:

http://blog.wookets.com/2011/05/flex-mobile-using-stagewebview-to-show.html

robmcm
  • 891
  • 11
  • 22
  • I try it before asking. It is said that it was tried on iOS but not Android. I did this in Android and it doesn't works. It shows 'Web page not available' – Snote Jul 29 '11 at 12:24
  • Ok I just test it on an iPhone 4 and it works fine. But now I want to that it works on Android! – Snote Aug 02 '11 at 14:15
  • I guess it's a limitation of the Android browser. When I browse to a PDF on an android phone it seems to download it and then open it in a PDF reader. Try using the web browser to look at your PDF on the Android phone and see if it can read it. – robmcm Aug 21 '11 at 17:49
  • You could also try converting the PDF to HTML? – robmcm Aug 21 '11 at 17:50