Android 中的动态 Apk [英] Dynamic Apk In Android

查看:27
本文介绍了Android 中的动态 Apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论如何要创建动态 apk.ie 假设我们有一个主站点并且它有许多子域.每个子域都应该有自己的自定义 apk,其中包含自己自定义的徽标、新闻等.

Is there anyway to create dynamic apk.ie suppose we have a main site and it has many subdomains.Each subdomain should have there own customized apk containing their own customized logo,news etc.

除了为每个站点创建单独的 apk 之外,还有其他方法可以创建 apk 吗?

Is it any way to create apk other than creating individual apk for each site?

推荐答案

为什么要创建自定义 APK?为什么不下载需要定制的内容?

Why create a custom APK? Why not download the content that needs to be customized?

无论如何,您可以使用 sharedUserIdgetResourcesForApplication()(link).您仍然需要为每个 APK 制作一个.

Anyways, you can share resources from different APKs using a sharedUserId and getResourcesForApplication() (link). You would still need to make each an APK.

来自 Roman Nurik 的一些信息:

Some info from Roman Nurik:

在应用程序之间共享文件

如果您的应用使用相同的证书签名并具有相同的证书android:sharedUserId 在manifest中声明,他们可以共享数据他们可以读/写彼此的数据目录.他们能如果您愿意,甚至可以共享进程(请参阅 android:process).

If your apps are signed with the same certificate and have the same android:sharedUserId declared in the manifest, they can share data in that they can read/write to each others' data directories. They can even share a process if you'd like them to (see android:process).

更多类似问题的链接:

  • Share raw resource between apk's
  • Can you share resources across APK's? (see second answer about getResourcesForApplication)

这篇关于Android 中的动态 Apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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