- Home /
How to open pdf in Android with external app?
Hi all! I need to open a pdf file with my Unity App in Android with a pdf reader installed on my phone. I have put the pdf inside Assets folder of my project and in Unity project preview all works very well, but when I try the app on my android's phone i get an error and the file could not be opened. I am using this C# code:
Application.OpenURL ((Application.dataPath) + "/nameofmyfile.pdf");
Thanks in advance for the help!
Comment
Hey ! I know it's an old post but I'm currently struggling to open a pdf file in an external app ... Have you finely succeeded to do so ? And where did you put your pdf file at the end ? Thank you really much ! :)
Answer by DroidifyDevs · Jun 04, 2016 at 09:41 PM
Take a look at this: http://stackoverflow.com/questions/19972464/open-pdf-files-in-unity