Reputation: 3027
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
Upvotes: 3
Views: 283
Reputation: 52760
Opening a PDF in the browser component will only work on devices and won't work in the simulator.
Upvotes: 1