I want to Install two apps automatically while installing one App. The apps are separate. Can Anyone help on this.
This is certainly possible. In your Manifest, declare every Activity
you want to have 'installed'. Be aware that this means that they all will be deleted too, if one icon will be removed.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" >
<uses-permission ... />
<application
...
>
<activity
android:name=".MainActivity1"
android:label="@string/app_name1"
android:icon="@mipmap/ic_launcher1"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity2"
android:label="@string/app_name2"
android:icon="@mipmap/ic_launcher2"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity3"
android:label="@string/app_name3"
android:icon="@mipmap/ic_launcher3"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.