content/src/main/java/com/stanfy/enroscar/content/SharingHelper.java
public boolean checkSharingIntent(final Activity activity) {
    final Intent activityIntent = activity.getIntent();
    if (activityIntent.hasExtra(SharingHelper.EXTRA_SHARING)) {
      processSharingIntent(activityIntent.<Intent>getParcelableExtra(SharingHelper.EXTRA_SHARING));
      activityIntent.removeExtra(SharingHelper.EXTRA_SHARING);
      return true;
    }
    return false;
  }
public boolean checkSharingIntent(final Activity activity) {
    final Intent activityIntent = activity.getIntent();
    if (activityIntent.hasExtra(SharingHelper.EXTRA_SHARING)) {
      processSharingIntent(activityIntent.<Intent>getParcelableExtra(SharingHelper.EXTRA_SHARING));
      activityIntent.removeExtra(SharingHelper.EXTRA_SHARING);
      return true;
    }
    return false;
  }
public boolean checkSharingIntent ( final Activity activity ) { final Intent activityIntent = activity . getIntent ( ) ; if ( activityIntent . hasExtra ( SharingHelper . EXTRA_SHARING ) ) { processSharingIntent ( activityIntent . < Intent > getParcelableExtra ( SharingHelper . EXTRA_SHARING ) ) ; activityIntent . removeExtra ( SharingHelper . EXTRA_SHARING ) ; return true ; } return false ; }
Check whether activity contains a sharing intent previously set with {@link #setSharingIntent(Intent, Intent)}
and process it with {@link #processSharingIntent(Intent)} if result is positive.
Anyway activity intent will not contain a sharing extra after this method execution.
@param activity activity instance
@return whether sharing extra has been put to the activity intent
Check whether activity contains a sharing intent previously set with {