I am aware you cannot open a PDF in the WebView on Android. That really sucks...get on that google!
Anyway, I have read this: http://developer.appcelerator.com/blog/2011/09/sharing-project-assets-with-android-intents.html
but I want to know before I go and try this, am I able to load a PDF from a remote location like a web server?
1 Answer
Hi Ronnie,
You can open pdf in webview in android using this code just place your remote PDF Url in url variable.
var finalUrl = 'http://docs.google.com/viewer?embedded=true&url='+ url ; var webView = Ti.UI.createWebView({ left : 0, url : finalUrl, top : 10, width : 320, height : 350, }); win.add(webView);
Your Answer
Think you can help? Login to answer this question!