About the 1st, please help to file a bug at https://crosswalk-project.org/jira. Please provide detailed reproduce step and test case for this. About the 2nd, We have a bug about this https://crosswalk-project.org/jira/browse/XWALK-4212. Could you please help to submit you detailed test case for this?
Regards, Xing From: Luis Tiago Eterovick [mailto:[email protected]] Sent: Wednesday, June 24, 2015 4:59 AM To: Xu, Xing Cc: [email protected] Subject: Re: [Crosswalk-dev] Can't download anything inside of XWalkView Okay, i managed to download small files with this simple code: http://paste.ofcode.org/pBFuiMXMcNECsgmuVVrDKB 1- But i can't get the file name correctly when the url redirects to the download (e.g. django download links) 2- For most downloads, i get the error: E/chromium﹕ [ERROR:runtime_download_manager_delegate.cc(170)] Not implemented reached in void xwalk::RuntimeDownloadManagerDelegate::ChooseDownloadPath(uint32, const DownloadTargetCallback&, const base::FilePath&) What should i do? Thanks 2015-06-16 22:04 GMT-03:00 Xu, Xing <[email protected]<mailto:[email protected]>>: The following file is a good reference for how to use it: https://android.googlesource.com/platform/packages/apps/Browser/+/master/src/com/android/browser/DownloadHandler.java Regards, Xing From: Xu, Xing Sent: Wednesday, June 17, 2015 8:56 AM To: 'Luis Tiago Eterovick' Cc: [email protected]<mailto:[email protected]> Subject: RE: [Crosswalk-dev] Can't download anything inside of XWalkView 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]<mailto:[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
