是否可以将一个Android应用程序分成两个APK文件?

发布于 2024-12-20 13:53:16 字数 221 浏览 3 评论 0原文

我有一个带有代码和大量图形的android应用程序(单个apk文件),它需要大量空间。我想将我庞大的应用程序分为两部分。第一部分是源代码和次要图形(占用空间较小),第二部分包括所有其他图形。当用户启动第一个应用程序时,它使用另一个应用程序中的图形。

1)解决方案可能吗?

2)如果可能,我如何从第一个apk访问SD卡上的资源文件,该文件存储在另一个zip/archive/jar/或apk中?

I have android application (single apk file) with code and ga lot of graphics, It takes a lot of space. I want to devide my huge application into two parts. The first is a source code and minor graphice (takes low space), the second part includes all other graphic. When user launches first application, it uses graphic from another application.

1) Is solution it possible?

2) If it is possible, how can I access from first apk to a resource file at SD card, whick stores in another zip/archive/jar/or apk?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

暖伴 2024-12-27 13:53:16

也许您可以在一个应用程序中将图形作为内容提供程序提供,然后在另一个应用程序中读取它们。

Maybe you can provide your graphic as a Content Provider in one application and then read them in another application.

自在安然 2024-12-27 13:53:16

您可以使用库项目来实现此目的。

You can use Library Projects to achieve this.

烟花肆意 2024-12-27 13:53:16

有多种方法可以做到这一点。其中一种更流行的方法是要求应用程序在“首次运行”时下载大图形。大多数大型游戏应用程序都是这样做的。

There are a number of ways to do this. One of the more popular is to require the application to download the large graphics on "first-run". This is done by most large game apps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文