可能重复:
从url下载PDF并阅读它
我必须从网址下载pdf文件并将其保存到SD卡然后阅读它.我通过了许多代码,我发现了这一点
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("*url for your pdf*"));
startActivity(browserIntent);
Run Code Online (Sandbox Code Playgroud)
但是如何在我想要的路径中将它保存在SD卡中然后从那里读取它.
以前也有人问过类似的问题,但很久以前没有答案。
第一次加载 webview 时,对讲说 webview 但我希望它什么都不说。
我尝试在 XML 中设置内容描述
android:id="@+id/web"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="CustomText"
Run Code Online (Sandbox Code Playgroud)
但它最后还是说 Webview。也试过importantForAccessbility不,但它也禁用对讲来阅读内容。我错过了什么吗?
android accessibility webview android-webview android-accessibility