Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to merge two APK into single so that both apps can be installed at the same time

Tags:

android

How to merge 2 Android apps into bundle so that when I install the bundle both the app are installed? I want to merge 2 APKs into a single bundle so that I can upload it on Android Market and when somebody installs it on the device then both the apps should installed on the device.

like image 790
Parvendra Avatar asked Feb 22 '11 06:02

Parvendra


1 Answers

If these two apps have no overlaps, you only need to merge the AndroidManifest.xml, res and src folders.

Keep two activities with the following intent filter:

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

will make you have two launch entrance in Launcher.

In fact, it's one app with one apk. But since have two launchable activities, user will feel like they have installed two apps with one apk.

like image 160
Johnny Avatar answered Oct 13 '22 18:10

Johnny