Hi,
I've 2 applications.
~~~~~~~~~~~
manifest.xml for app1
~~~~~~~~~~~
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mytest.android.hellotest" android:versionCode="1"
android:versionName="1.0.0">
<application android:icon="@drawable/icon" android:label="@string/
app_name">
<activity android:name=".HelloTest" android:label="@string/
app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</manifest>
~~~~~~~~~~~
manifest.xml for app2
~~~~~~~~~~~
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mytest.android.testapp" android:versionCode="1"
android:versionName="1.0.0">
<application android:icon="@drawable/icon" android:label="@string/
app_name">
<activity android:name=".TestApp" android:label="@string/
app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</manifest>
===========================
I'm trying to do the following.
When I launch app1, instead of starting app1, it should launch app2
and do some processing, then app2 starts app1 with startActivity().
my new manifest.xml for app1 looks like this - changed the main
activity. (pointing to activity in app2)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mytest.android.hellotest" android:versionCode="1"
android:versionName="1.0.0">
<application android:icon="@drawable/icon" android:label="@string/
app_name">
<activity android:name="com.mytest.android.testapp.TestApp"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</manifest>
With the above change, I got "Class com.mytest.android.testapp.TestApp
doesn't exist". I tried using sharedUsedId. Same error.
I would like to know if it's possible to launch another app's main
activity by changing manifest.xml?
Thanks in advance

