Hi. I try to send a url which links to a pdf file  to this address: "
https://docs.google.com/gview?embedded=true&url=";;
but finally i see the HTML code of the page i log on to the site where the
pdf file is. the code i use is:

class TestXWalkResourceClientBase extends XWalkResourceClient {

    public TestXWalkResourceClientBase(XWalkView xwalkWebView) {
        super(xwalkWebView);
    }

    @Override
    public boolean shouldOverrideUrlLoading(XWalkView view, String url) {
        if(url.startsWith("https://ape.desmie.gr";)) {
            count++;
            mTitleText1.setText("shouldOverrideUrlLoading triggered ");
            mTitleText2.setText(count + " times");
            if 
(url.startsWith(("https://ape.desmie.gr/Producerprofile/displaymemo/yearmonth/";)))
{
                mTitleText1.setText(url);
                Log.d("PAS",url);
                String googleDocsURL =
"https://docs.google.com/gview?embedded=true&url=";;
                String remotePath =url;
                view.load(googleDocsURL + remotePath,null);
            }
        }
        return super.shouldOverrideUrlLoading(xwalkWebView, url);
    }
    //xwalkWebView.load("https://ape.desmie.gr/";, null);
}

Any suggestion?

Thanks
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to