DownloadListener doesn't download images?

后端 未结 1 893
生来不讨喜
生来不讨喜 2021-01-24 13:16

In my Android app, I\'m using a WebView with a downloadListener. I want access a intranet site and when click in a link, decide what to do with the file using mimetype info.

相关标签:
1条回答
  • 2021-01-24 14:07

    Based on the documentation:

    Registers the interface to be used when content can not be handled by the rendering engine, and should be downloaded instead. This will replace the current handler.

    Since, images can be handled by rendering engine, it doesn't download it and as result doesn't call download manager.

    0 讨论(0)
提交回复
热议问题