I am not sure about this, maybe you can help to create a bug at 
https://crosswalk-project.org/jira/ about this?

Regards,
Xing

From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of 
ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ
Sent: Monday, November 2, 2015 11:58 PM
To: [email protected]
Subject: [Crosswalk-help] can't open a link with XWalkView

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<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