Okay, now that it's included, how should i use it?
I'm trying this but it's opening the download in Firefox:
mXWalkView.setDownloadListener(new XWalkDownloadListener(ctx) {
public void onDownloadStart(String url, String userAgent,
String contentDisposition, String
mimetype,
long contentLength) {
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
}
});
2015-03-03 4:01 GMT-03:00 Xu, Xing <[email protected]>:
> Hi, Eterovick
>
> Currently XWalkView::setDownloadListener is not available.
>
>
>
> We will add it into our future release, you can track it here:
>
> https://crosswalk-project.org/jira/browse/XWALK-3647
>
>
>
>
>
> *From:* Crosswalk-dev [mailto:
> [email protected]] *On Behalf Of *Luis
> Tiago Eterovick
> *Sent:* Tuesday, March 3, 2015 1:23 AM
> *To:* [email protected]
> *Subject:* [Crosswalk-dev] Can't download anything inside of XWalkView
>
>
>
> I can't download anything inside of XWalkView. I supposed I have to
> implement a download delegate, but I have no idea how to do that. On a
> regular webview I'd try to setDownloadListener(), but its not available
> for XWalkView.
>
>
>
> How can i handle downloads on my XWalkView?
>
>
>
> Thanks in advance
>
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev