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:lu...@syst.com.br] Sent: Wednesday, June 17, 2015 5:07 AM To: Xu, Xing Cc: crosswalk-dev@lists.crosswalk-project.org 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 <xing...@intel.com<mailto:xing...@intel.com>>: 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:crosswalk-dev-boun...@lists.crosswalk-project.org<mailto:crosswalk-dev-boun...@lists.crosswalk-project.org>] On Behalf Of Luis Tiago Eterovick Sent: Tuesday, March 3, 2015 1:23 AM To: crosswalk-dev@lists.crosswalk-project.org<mailto:crosswalk-dev@lists.crosswalk-project.org> 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 Crosswalk-dev@lists.crosswalk-project.org https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev