Install in Android App

If you want to share an activity, first create an instance of the JRActivityObject:

String activityText = "added JREngage to her Android application!";
String activityLink = "http://janrain.com";

JRActivityObject jrActivity = new JRActivityObject(activityText, activityLink);

Populate the new object with information about the activity being shared by. Here, an Facebook action link is added:

activityObject.addActionLink(new JRActionLink("Download the Quick Share demo!", "https://market.android.com/details?id=com.janrain.android.quickshare");

Then pass the activity to the showSocialPublishingDialogWithActivity method:

mEngage.showSocialPublishingDialogWithActivity(jrActivity);