简体   繁体   English

更新已安装的android应用程序中的资源

[英]Updating resources in installed android application

I've created a webview app which floats a html file that's inserted into the app(assets folder). 我创建了一个webview应用程序,该应用程序浮动一个插入到应用程序(资产文件夹)中的html文件。 Is there anyway to update this html file without updating the apk file? 反正有没有更新此html文件而不更新apk文件?

I won't be uploading this app to play store. 我不会上载这个应用程式来玩商店。 I'll be putting the html file in my web server so that the app can detect if there is a new html version and downloads the html file and replaces it. 我将html文件放入我的Web服务器,以便该应用程序可以检测是否有新的html版本并下载该html文件并替换它。

All resources/assets included in apk are final and cannot be edited at runtime. APK中包含的所有资源/资产都是最终的,无法在运行时进行编辑。

You'll need to store new html files in your apps data directory (doesn't require any permissions) and use html from assets as a fallback. 您将需要在应用程序数据目录中存储新的html文件(不需要任何权限),并使用资产中的html作为备用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM