java - Combining Modules Android Application -



java - Combining Modules Android Application -

i'm doing android project on eclipse , have 2 independent apps sources(modules). how combine these 2 modules, such when button (present on first app) clicked, sec app launched? far i've created button , that's it.any help appreciated. i'm beginner, please specific :) give thanks you!

in manifest of sec app :

<activity android:name=".mainactivitysecondapp" android:label="@string/app_name" > <intent-filter> <action android:name="com.external.intentreceiver" /> </intent-filter> </activity>

and place next code within onclicklistener of button in first app :

intent intent = new intent(); intent.setaction("com.external.intentreceiver"); context.startactivity(intent);

so, when button clicked, intent of type com.external.intentreceiver fired. mainactivitysecondapp open since meant handle such intents defined in manifest.

java android eclipse android-layout android-activity

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -