beck
beck

Reputation: 3027

Web browser connection in codename one

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

Answers (1)

Shai Almog
Shai Almog

Reputation: 52760

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

Upvotes: 1

Related Questions