android - 如何在webview的html页面中下载pdf
问题描述
我在服务器上有一个 forms.html 文件。它显示了要下载的 pdf 的链接。当我单击浏览器上的链接时,它会毫无问题地下载。但是当我尝试在应用程序中下载它时,什么也没有发生。如何在 webview 的 html 页面中下载链接上的 pdf?
html代码
<a href="somepdfurl" class="external"><img src="formlar/'.$resim.'" alt="" title="" /></a>
网页浏览
<WebView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/web"
></WebView>
解决方案
推荐阅读
- php - chrome浏览器硬重置后,我的下拉菜单看起来很大
- html - 徽标与导航栏对齐良好。而我后来添加的东西总是从顶部开始
- python - 如何在同一个视图中有两个 POST 请求而不会出现 MultiValueDictKeyError?
- sql - ORA-12801:在并行查询服务器 P02T 中发出错误信号 ORA-30926:无法在源表中获得一组稳定的行
- mongodb - 将元素添加到 MongoDB 中对象数组中的对象中的数组
- cassandra - 如何在 Nifi 中设置 QueryCassandra 处理器的增量或最大值列?
- cmake - 在 Mac 上设置 VulkanGuide 教程
- javascript - 在 jsplumb 社区版中需要帮助以拖放不同的操作组件
- android - 将 layout_height 更改为“wrap_content”会缩小组件
- excel - excel时间少于3小时条件格式