i am new to android application.I have created two sample applications as Oneproject,Twoproject.when i run the Oneproject then the Twoproject automatically should be install in the same device,For this i have intialize intent filter in androidmanifestfile.xml as follows:
<?xml version="1.0" encoding="utf-8"?>
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".OneAppActivity"
android:label="@string/app_name">
<intent-filter>
</intent-filter>
</activity>
<activity android:name="com.twoproject.two.TwoAppActivity"
android:label="twoapp">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
I can install the two application into my device but when i launch the Oneproject then i am not able to lanuch the Twoproject.how can i install two applications(apks)with single installation and launch?
any body plzzz help me……
In eclipse right click on OneProject>Properties>java Build Path> In right window click Project>Add>TwoProject>OK>OK
Thats it!!! When u install OneProject TwoProject will get installed. Console will show found dependency.
cheers!!
Remove this from Oneproject:
Add this tags to the intent filter of OneProject:
Both the applications get installed, I guarantee!!!