是否可以将一个Android应用程序分成两个APK文件?
我有一个带有代码和大量图形的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
也许您可以在一个应用程序中将图形作为内容提供程序提供,然后在另一个应用程序中读取它们。
Maybe you can provide your graphic as a Content Provider in one application and then read them in another application.
您可以使用库项目来实现此目的。
You can use Library Projects to achieve this.
有多种方法可以做到这一点。其中一种更流行的方法是要求应用程序在“首次运行”时下载大图形。大多数大型游戏应用程序都是这样做的。
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.