下载和替换的Andr​​oid资源文件 [英] Download and replace Android resource files

查看:145
本文介绍了下载和替换的Andr​​oid资源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序将有一些定制为每一个使用它的公司。到现在为止,我一直在加载从资源文件的图像和字符串。这个想法是,默认的资源与应用程序和公司的具体资源分布会从我们的服务器上加载后,他们点击一个链接从电子邮件启动初始化意图。有谁知道如何替换资源文件?我真的想继续使用的资源文件,以避免重写了很多code / XML的。

我就从我们自己的服务器分发应用程序,而不是通过应用程序商店,让我们可以有每个公司的一个版本,但遗憾的是这会给相当讨厌安全警告,将关注我们的客户。

解决方案
  

有谁知道如何更换   资源文件?

这是不可能的,除非通过部署更新APK。的APK数字签名,并且不能在运行时修改

My application will have some customisation for each company that uses it. Up until now, I have been loading images and strings from resource files. The idea is that the default resources will be distributed with the application and company specific resources will be loaded from our server after they click on a link from an email to launch the initialisation intent. Does anyone know how to replace resource files? I would really like to keep using resource files to avoid rewriting a lot of code/XML.

I would distribute the application from our own server, rather than through the app store, so that we could have one version per company, but unfortunately this will give quite nasty security warnings that would concern our customers.

解决方案

Does anyone know how to replace resource files?

It is not possible, except by deploying an updated APK. APKs are digitally signed and cannot be modified at runtime.

这篇关于下载和替换的Andr​​oid资源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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