Home » Android » android – How to merge two APK into single so that both apps can be installed at the same time

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

Posted by: admin May 14, 2020 Leave a comment

Questions:

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.

How to&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.