修复移动数据联网时不能下载的问题
This commit is contained in:
parent
136fbb6299
commit
05cc69481a
|
@ -2,7 +2,7 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.hty.browser"
|
||||
android:versionCode="4"
|
||||
android:versionName="4.5">
|
||||
android:versionName="4.6">
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
|
|
|
@ -9,7 +9,7 @@ p { text-indent:2em; }
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2 align=center><img src=logo.png><br>海天鹰浏览器 V4.5</h2>
|
||||
<h2 align=center><img src=logo.png><br>海天鹰浏览器 V4.6</h2>
|
||||
<p>内置扩展的浏览器。</p>
|
||||
<p>扩展:链接关键字过滤,链接关键字高亮,图片自定义过滤,视频独立播放。</p>
|
||||
<p>作者:黄颖</p>
|
||||
|
@ -23,6 +23,7 @@ p { text-indent:2em; }
|
|||
<p><a href="https://stackoverflow.com/questions/3462582/display-the-android-webviews-favicon" target="_blank">获取网页图标</a></p>
|
||||
<p><a href="https://www.jianshu.com/p/c9a18050a249" target="_blank">字符串转Bitmap</a></p>
|
||||
<h3>更新日志:</h3>
|
||||
<h3>V4.6 (2019-07-16)</h3><ol><li>修复:移动数据连接不能下载。</li></ol>
|
||||
<h3>V4.5 (2019-06-19)</h3><ol><li>增加:视频截图。</li><li>简化:视频独立播放。</li></ol>
|
||||
<h3>V4.4 (2019-05-02)</h3><ol><li>增加扩展和设置开关:图片宽度超过父容器宽度,图片缩小到父容器宽度。</li></ol>
|
||||
<h3>V4.3 (2019-04-11)</h3><ol><li>收藏夹删除收藏时记住位置。</li></ol>
|
||||
|
|
|
@ -1087,14 +1087,10 @@ public class MainActivity extends Activity {
|
|||
// request.setTitle("This is title");
|
||||
// 设置通知栏的描述
|
||||
request.setDescription(surl);
|
||||
// 允许在计费流量下下载
|
||||
request.setAllowedOverMetered(false);
|
||||
// 允许该记录在下载管理界面可见
|
||||
//request.setVisibleInDownloadsUi(true);
|
||||
// 允许漫游时下载
|
||||
request.setAllowedOverRoaming(true);
|
||||
// 允许下载的网路类型
|
||||
request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI);
|
||||
// 设置下载文件保存的路径和文件名
|
||||
String fileName = URLUtil.guessFileName(surl, contentDisposition, mimeType);
|
||||
Log.e(Thread.currentThread().getStackTrace()[2] + "", fileName);
|
||||
|
|
Loading…
Reference in New Issue