Android - 将 2 个应用程序打包在一起

标签 android packaging google-play

还记得 Facebook 不久前如何发布更新,其中包括“相机”应用程序以及常规 Facebook 应用程序吗?我怎样才能在市场上将 2 个 apk 打包在一起,这样当您下载主应用程序时,您实际上得到了 2 个相互关联的独立应用程序?

我宁愿让我的用户同时获得这两个应用程序,然后尝试分别寻找它们。谢谢

最佳答案

Remember how Facebook posted an update awhile back that included a 'Camera' app as well as the regular Facebook app?

没有。

How can I package 2 apks together in the market so when you download the main application, your actually getting 2 separate applications that are related to each other?

你不能。

最接近的做法是将应用 B 的 APK 打包到应用 A 的 Assets 中,然后当应用 A 运行时,将应用 B 复制到外部存储并启动安装。这将花费两倍的存储空间,因为您无法从应用程序 A 的 APK 中删除应用程序 B 的副本。并且,用户必须完成并批准安装 App B。

我的猜测是,您认为两个独立的应用程序实际上是两个独立的启动器图标,它们可以通过两个 <activity> 在单个 APK 中处理。带有 <intent-filter> 的元素对于 MAINLAUNCHER ,而不仅仅是一个。

关于Android - 将 2 个应用程序打包在一起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10835193/

相关文章:

android - Phonegap 3.3 和 minSdkVersion=8 变为 minSdkVersion=10

android - 从 Android 应用程序打开 Facebook 页面?

Android TableLayout 拉伸(stretch)单元格内容

android - 像在谷歌地图应用程序中一样在安卓中画圈

python - 将 python 库/应用程序打包为 .egg 文件有什么好处?

android - 一些(但不是全部)用户从 Google Play 下载我的应用时收到 "Package file was not signed correctly"

android - 使用应用内购买获得任意捐赠值(value)?

cross-platform - 构建跨平台应用 - 推荐

node.js - 如何将资源或模板文件包含在 npm 包中,然后将它们加载到 Node 中?

android - 为什么我的应用在 Google Play 商店应用搜索结果中完全隐藏