sdk/src/com/socialize/share/EmailShareHandler.java
@Override
	protected void handle(Activity context, SocializeAction action, String text, PropagationInfo info, SocialNetworkListener listener) throws Exception {

		boolean shareCancelled = false;

		Entity entity = action.getEntity();

		PostData postData = sharePostDataFactory.create(entity, info, text, isHtml(), true);

		if(listener != null) {
			shareCancelled = listener.onBeforePost(context, null, postData);
		}

		if(!shareCancelled) {
			String title = String.valueOf(postData.getPostValues().get(ShareUtils.EXTRA_TITLE));
			String body = String.valueOf(postData.getPostValues().get(ShareUtils.EXTRA_TEXT));
			Intent msg = getIntent(context);
			msg.putExtra(Intent.EXTRA_TITLE, title);

			if(isHtml()) {
				msg.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(body));
			}
			else {
				msg.putExtra(Intent.EXTRA_TEXT, body);
			}

            msg.putExtra(Intent.EXTRA_SUBJECT, String.valueOf(postData.getPostValues().get(ShareUtils.EXTRA_SUBJECT)));

			startActivity(context, msg, title);
		}

		if(listener != null) {
			listener.onAfterPost(context, null, null);
		}
	}
@Override
	protected void handle(Activity context, SocializeAction action, String text, PropagationInfo info, SocialNetworkListener listener) throws Exception {

		boolean shareCancelled = false;

		Entity entity = action.getEntity();

		PostData postData = sharePostDataFactory.create(entity, info, text, isHtml(), true);

		if(listener != null) {
			shareCancelled = listener.onBeforePost(context, null, postData);
		}

		if(!shareCancelled) {
			String title = String.valueOf(postData.getPostValues().get(ShareUtils.EXTRA_TITLE));
			String body = String.valueOf(postData.getPostValues().get(ShareUtils.EXTRA_TEXT));
			Intent msg = getIntent(context);
			msg.putExtra(Intent.EXTRA_TITLE, title);

			if(isHtml()) {
				msg.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(body));
			}
			else {
				msg.putExtra(Intent.EXTRA_TEXT, body);
			}

            msg.putExtra(Intent.EXTRA_SUBJECT, String.valueOf(postData.getPostValues().get(ShareUtils.EXTRA_SUBJECT)));

			startActivity(context, msg, title);
		}

		if(listener != null) {
			listener.onAfterPost(context, null, null);
		}
	}
@ Override protected void handle ( Activity context , SocializeAction action , String text , PropagationInfo info , SocialNetworkListener listener ) throws Exception { boolean shareCancelled = false ; Entity entity = action . getEntity ( ) ; PostData postData = sharePostDataFactory . create ( entity , info , text , isHtml ( ) , true ) ; if ( listener != null ) { shareCancelled = listener . onBeforePost ( context , null , postData ) ; } if ( ! shareCancelled ) { String title = String . valueOf ( postData . getPostValues ( ) . get ( ShareUtils . EXTRA_TITLE ) ) ; String body = String . valueOf ( postData . getPostValues ( ) . get ( ShareUtils . EXTRA_TEXT ) ) ; Intent msg = getIntent ( context ) ; msg . putExtra ( Intent . EXTRA_TITLE , title ) ; if ( isHtml ( ) ) { msg . putExtra ( Intent . EXTRA_TEXT , Html . fromHtml ( body ) ) ; } else { msg . putExtra ( Intent . EXTRA_TEXT , body ) ; } msg . putExtra ( Intent . EXTRA_SUBJECT , String . valueOf ( postData . getPostValues ( ) . get ( ShareUtils . EXTRA_SUBJECT ) ) ) ; startActivity ( context , msg , title ) ; } if ( listener != null ) { listener . onAfterPost ( context , null , null ) ; } }
/* (non-Javadoc)
@see com.socialize.share.AbstractShareHandler#handle(android.app.Activity, com.socialize.entity.SocializeAction, java.lang.String, com.socialize.entity.PropagationInfo, com.socialize.share.ShareHandlerListener)
/ * ( non - Javadoc )