3
votes

when url like youtube.com or others are set, it opens in webBrowser but when pdf link is kept nothing happens, why is that??

     WebBrowser pdfview = new WebBrowser();
                pdfview.setURL("http://www.codenameone.com/files/developer-guide.pdf");  
//this link downloads the pdf file in browser but does nothing in codename one browser...
                f.addComponent(pdfview);

i jst want to view this pdf from the browser

1
Did you try that on device or Simulator? - Diamond
i checked in android devices also but doesnt work - beck

1 Answers

1
votes

Opening a PDF in the browser component will only work on devices and won't work in the simulator.