动态的.apk在Android中动态、apk、Android

2023-09-05 10:21:17 作者:柠檬味的少女

反正是有创建动态apk.ie假设我们有一个主要的网站,它有许多subdomains.Each子域应该有自己定制的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?

不管怎么说,你可以使用 sharedUserId getResourcesForApplication()(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.

从罗马Nurik一些信息:

Some info from Roman Nurik:

应用程序之间的 共享文件

Share files between applications

如果您的应用程序都使用相同的证书签名,并且具有相同   安卓sharedUserId 在清单中声明,他们可以在共享数据   它们可以读/写至彼此的数据的目录。他们可以   甚至共享一个进程,如果你希望他们(见安卓过程)。

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).

更多链接到类似的问题:

More links to similar questions:

分享的apk 的原始资源 你可以在APK的?(见约getResourcesForApplication第二个答案共享资源) Share raw resource between apk's Can you share resources across APK's? (see second answer about getResourcesForApplication)
 
精彩推荐