Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

File Download does not work (Advanced Web View) #112

Open
vsatmydynipnet opened this issue Aug 23, 2021 · 0 comments
Open

File Download does not work (Advanced Web View) #112

vsatmydynipnet opened this issue Aug 23, 2021 · 0 comments

Comments

@vsatmydynipnet
Copy link

I try to get downloads working since days, but unsuccessful. Have to admit, I am no dev, so double hard. For me it looks like some parts of the implementation

https://github.com/delight-im/Android-AdvancedWebView

Downloads are handled automatically and can be listened to

@Override
public void onDownloadRequested(String url, String suggestedFilename, String mimeType, long contentLength, String contentDisposition, String userAgent) {
    // some file is available for download
    // either handle the download yourself or use the code below

    if (AdvancedWebView.handleDownload(this, url, suggestedFilename)) {
        // download successfully handled
    }
    else {
        // download couldn't be handled because user has disabled download manager app on the device
        // TODO show some notice to the user
    }
}

but I am not good enough in Java to be able to chang/add it myself.

Any hint would be greatly appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant