Issue
I'm trying to open pdf in webview of android,
I tried using :
webView.loadUrl("https://docs.google.com/gview?embedded=true&url="+url)
If url is http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf
(this is a sample), its working fine,
but if url is http://192.168.x.xxx:8001/ql/Demo/Demo_Rep_DDForm.pdf
its not opening.
Unable to figure out the reason, the above IP is public.
Solution
the above IP is public
No, it is not. IPs in the range you've provided are internal IP addresses used within a LAN network. Your public IP is something different, and you will have to find that out and use it to serve up your file using Google Docs.
You can get your public IP by simply typing my public ip
into Google.
Additionally, public IPs change quite frequently (unless you're paying extra for a static IP to your ISP), so you would be better of hiring a server, or keeping your file in public domain somewhere to allow unbroken access to it.
Answered By - Raghav Sood
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.