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

前端 未结 1 1750
刺人心
刺人心 2020-12-01 12:53

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

相关标签:
1条回答
  • 2020-12-01 13:46

    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.

    0 讨论(0)
提交回复
热议问题