android - Google Document Viewer shows “No Preview Available” -


i have problem google doc viewer display xls file server.

currently when try display xls file server in android app webview, have grey page no preview available (i can download xls server url). enter image description here

sorry, not share link it's xxxx.com/123/downloadexcel_get?paraone=%s&paratwo=%s&parathree=%s.

but when try xls exemple file in internet http://lecompagnon.info/demos/demoxl3.xls , don't have problem. xls display succesfully.

same it's working if try googledrive url "drive.google.com/file/t/myfile/view?usp=sharing".

the difference exemple file in internet , file server, time start download. exemple file instant, xls have wait more 10sec start download.

i think google doc viewer return no preview available, because him 10sec file long , return time out. it's supposition...

i found nothing problem, topic google document viewer shows "no preview available" .

here code :

string urlgoogle = "https://docs.google.com/gview?embedded=true&url=";          string completeurl = urlgoogle + query;          log.i("completeurl", completeurl);         wv.getsettings().setjavascriptenabled(true);         wv.loadurl(completeurl);         //wv.loadurl("https://docs.google.com/gview?embedded=true&url=" + "http://lecompagnon.info/demos/demoxl3.xls"); working         wv.setwebviewclient(new webviewclient() {             public boolean shouldoverrideurlloading(webview view, string url) {                 view.loadurl(url);                 return false;             }         }); 

edit add more information. grey page no preview available not showing, xls file display first time.

if have grey page, can refresh, , after 1 or 2 refresh, file display. refresh call again url in webview

the file dynamically create , generated serveur, why download or file must wait 10 sec.

do google doc viewer have timeout if time file display long ?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -