Obviously, you start an Activity which supports ACTION_VIEW. In your system, it is firefox. Generally, with this API, you can handle all the download related things. Such as: 1), As you have done, download it with ACTION_VIEW 2), Create a new thread, using android.app.DownloadManager to download it. 3), Or, just ignore it.
Regards, Xing From: Luis Tiago Eterovick [mailto:[email protected]] Sent: Wednesday, June 17, 2015 5:07 AM To: Xu, Xing Cc: [email protected] Subject: Re: [Crosswalk-dev] Can't download anything inside of XWalkView 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]<mailto:[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]<mailto:[email protected]>] On Behalf Of Luis Tiago Eterovick Sent: Tuesday, March 3, 2015 1:23 AM To: [email protected]<mailto:[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
