【发布时间】:2019-02-02 12:29:24
【问题描述】:
我从网络请求中获取 html sn-ps 更新,需要将它们插入到本地 html 文件中,然后可以在运行时使用 webView.loadUrl 获取该文件。
我可以使用webView.loadUrl 轻松地从/android_assets/myFile.html 加载文件,但我无法写入文件,因为在运行时无法访问/android_assets 目录:Writing to /android_assets at runtime
所以我的问题是,是否有其他位置可以放置 myFile.html,以便我可以在运行时写入它并将其加载到 webView 中?
【问题讨论】:
标签: android android-webview android-assets