sdk/src/com/socialize/ui/share/ShareDialogFactory.java
@Override
	public void show(
			Context context, 
			final Entity entity, 
			final SocialNetworkListener socialNetworkListener, 
			final ShareDialogListener shareDialoglistener, 
			final int displayOptions) {
		
		showDialog(context, 
				
		new BeanCreationListener<SharePanelView>() {
			
			@Override
			public void onError(String name, Exception e) {}
			
			@Override
			public void onCreate(SharePanelView bean) {
				bean.setSocialNetworkListener(socialNetworkListener);
				bean.setEntity(entity);
				bean.setShareDialogListener(shareDialoglistener);
				bean.setDisplayOptions(displayOptions);
				bean.applyDisplayOptions();
				bean.updateNetworkButtonState();
			}
		}, new ShareDialogListener() {

			@Override
			public void onShow(Dialog dialog, SharePanelView dialogView) {
				recordEvent("show");
				if(shareDialoglistener != null) {
					shareDialoglistener.onShow(dialog, dialogView);
				}
			}

			@Override
			public void onSimpleShare(ShareType type) {
				recordEvent("share", type.name());
				if(shareDialoglistener != null) {
					shareDialoglistener.onSimpleShare(type);
				}
			}

			@Override
			public void onCancel(Dialog dialog) {
				recordEvent("close");
				if(shareDialoglistener != null) {
					shareDialoglistener.onCancel(dialog);
				}
			}

			@Override
			public boolean onContinue(Dialog dialog, boolean remember, SocialNetwork... networks) {
				recordEvent("share", networks);
				return shareDialoglistener != null && shareDialoglistener.onContinue(dialog, remember, networks);
			}

			@Override
			public void onFlowInterrupted(DialogFlowController controller) {
				if(shareDialoglistener != null) {
					shareDialoglistener.onFlowInterrupted(controller);
				}
			}
		});
	}
@Override
	public void show(
			Context context, 
			final Entity entity, 
			final SocialNetworkListener socialNetworkListener, 
			final ShareDialogListener shareDialoglistener, 
			final int displayOptions) {
		
		showDialog(context, 
				
		new BeanCreationListener<SharePanelView>() {
			
			@Override
			public void onError(String name, Exception e) {}
			
			@Override
			public void onCreate(SharePanelView bean) {
				bean.setSocialNetworkListener(socialNetworkListener);
				bean.setEntity(entity);
				bean.setShareDialogListener(shareDialoglistener);
				bean.setDisplayOptions(displayOptions);
				bean.applyDisplayOptions();
				bean.updateNetworkButtonState();
			}
		}, new ShareDialogListener() {

			@Override
			public void onShow(Dialog dialog, SharePanelView dialogView) {
				recordEvent("show");
				if(shareDialoglistener != null) {
					shareDialoglistener.onShow(dialog, dialogView);
				}
			}

			@Override
			public void onSimpleShare(ShareType type) {
				recordEvent("share", type.name());
				if(shareDialoglistener != null) {
					shareDialoglistener.onSimpleShare(type);
				}
			}

			@Override
			public void onCancel(Dialog dialog) {
				recordEvent("close");
				if(shareDialoglistener != null) {
					shareDialoglistener.onCancel(dialog);
				}
			}

			@Override
			public boolean onContinue(Dialog dialog, boolean remember, SocialNetwork... networks) {
				recordEvent("share", networks);
				return shareDialoglistener != null && shareDialoglistener.onContinue(dialog, remember, networks);
			}

			@Override
			public void onFlowInterrupted(DialogFlowController controller) {
				if(shareDialoglistener != null) {
					shareDialoglistener.onFlowInterrupted(controller);
				}
			}
		});
	}
/* (non-Javadoc)
@see com.socialize.ui.share.IShareDialogFactory#show(android.content.Context, com.socialize.entity.Entity, com.socialize.networks.SocialNetworkListener, com.socialize.ui.share.ShareDialogListener, int)