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
Opening a PDF in the browser component will only work on devices and won't work in the simulator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With