07-10-2013 08:32 AM
I want to load a pdf file in Webview of passing a url to it. I tried it of passing a url to webview directly, but its not working. Thanks in advance.
07-22-2013 03:04 PM - edited 07-23-2013 01:22 PM
You can implement the same behavior of the BlackBerry 10 native browser in your application.
In order to achieve this behavior, have an if statement that checks if the url property of the WebView contains ".pdf". Then if it does, use a FilePicker object in saver mode to allow the user to save the file locally.
This is how the BlackBerry 10 browser operates for e.g. with this url: http://www.passport.gc.ca/form/pdfs/pptc153.pdf