Advertisement
Guest User

Rumi Project

a guest
Jul 11th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. Okay Rumi, This is how i plan of working it:
  2.  
  3.  
  4. In the manifest of the second app :
  5.  
  6. <activity
  7.     android:name=".MainActivitySecondApp"
  8.     android:label="@string/app_name" >
  9.     <intent-filter>
  10.         <action android:name="com.external.intentReceiver" />
  11.     </intent-filter>
  12. </activity>
  13. And then place the following code inside the onClickListener of the Button in the first App :
  14.  
  15. Intent intent = new Intent();
  16. intent.setAction("com.external.intentReceiver");
  17. context.startActivity(intent);
  18. So, when the button is clicked, an intent of the type com.external.intentReceiver will be fired. The MainActivitySecondApp will then open since it is meant to handle such intents as defined in the Manifest.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement