Android 应用更新、资产更新 [英] Android app update, assets update

查看:39
本文介绍了Android 应用更新、资产更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,它使用 assets 文件夹中的 .txt 文件.在 assets 文件夹中有更多的目录.稍后我想将新文件添加到这个资产文件夹,这样我就会有一个新的 apk(因为资产中的文件是 apk 的一部分).问题:那么当有人使用我的应用程序想要通过 Google Play 更新我的应用程序(使用资产中的新文件)时会发生什么,它会卸载他的旧应用程序吗?版本并安装新的或他如何接收这些新文件?或者更简单:应用更新期间会发生什么?

I have an app and it uses .txt files from assets folder. In assets folder are more directories in some depth. Later I will want to add new files to this assets folder so I'll have a new apk(cause files in assets are part of the apk). The question: So what happens when someone, who is using my app, wants to update my app(with new files in assets) through Google Play, will it uninstall his old version and install the new one or how he receive these new files? Or simpler: What happens during an app update?

有人可以让我在这方面有敏锐的洞察力吗?谢谢.

Could someone make me keen vision in this a little? Thanks.

推荐答案

旧应用刚刚被新应用取代.

The old app is just replaced by the new app.

你不必担心这个.应用程序始终完全安装而不会丢失数据.也就是说,.apk 文件只是被替换了.因此,您的资产也会自动更新.

You don't have to worry about that. Apps are always installed completely without loosing data. That is, the .apk file is just replaced. So your assets will be also updated automatically.

这里有一个例子:

Google Play 商店下载新的 .apk 文件.

Google Play Store downloads the new .apk file.

接下来,它会将 /data/app/ 中的旧 apk 文件替换为您的新 apk 文件.这意味着您的新应用中的所有内容现在都可用.

Next, it replaces the old apk file in /data/app/ by your new apk file. That means that all the stuff that is in your new app is now available.

这样就替换了整个应用程序.

In this way the whole application is replaced.

这篇关于Android 应用更新、资产更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆