Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web browser connection in codename one

Tags:

codenameone

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

like image 740
beck Avatar asked Mar 08 '26 00:03

beck


1 Answers

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

like image 175
Shai Almog Avatar answered Mar 10 '26 14:03

Shai Almog