protected void handleNonNetworkShare(Activity activity, final SocializeSession session, final ShareType shareType, final Share share, String shareText, Location location, final ShareAddListener shareAddListener) {

		SocialNetworkListener snListener = new SocialNetworkListener() {

			@Override
			public void onNetworkError(Activity context, SocialNetwork network, Exception error) {
				if(shareAddListener != null) {
					shareAddListener.onError(SocializeException.wrap(error));
				}
			}

			@Override
			public void onCancel() {
				if(shareAddListener != null) {
					shareAddListener.onCancel();
				}
			}

			@Override
			public boolean onBeforePost(Activity parent, SocialNetwork socialNetwork, PostData postData) {
				return shareAddListener instanceof SocialNetworkListener && ((SimpleShareListener) shareAddListener).onBeforePost(parent, socialNetwork, postData);
			}

			@Override
			public void onAfterPost(Activity parent, SocialNetwork socialNetwork, JSONObject responseObject) {
				if(shareAddListener != null) {
					shareAddListener.onCreate(share);
				}
			}
		};

		shareSystem.share(activity, session, share, shareText, location, shareType, snListener);
	}
protected void handleNonNetworkShare(Activity activity, final SocializeSession session, final ShareType shareType, final Share share, String shareText, Location location, final ShareAddListener shareAddListener) {

		SocialNetworkListener snListener = new SocialNetworkListener() {

			@Override
			public void onNetworkError(Activity context, SocialNetwork network, Exception error) {
				if(shareAddListener != null) {
					shareAddListener.onError(SocializeException.wrap(error));
				}
			}

			@Override
			public void onCancel() {
				if(shareAddListener != null) {
					shareAddListener.onCancel();
				}
			}

			@Override
			public boolean onBeforePost(Activity parent, SocialNetwork socialNetwork, PostData postData) {
				return shareAddListener instanceof SocialNetworkListener && ((SimpleShareListener) shareAddListener).onBeforePost(parent, socialNetwork, postData);
			}

			@Override
			public void onAfterPost(Activity parent, SocialNetwork socialNetwork, JSONObject responseObject) {
				if(shareAddListener != null) {
					shareAddListener.onCreate(share);
				}
			}
		};

		shareSystem.share(activity, session, share, shareText, location, shareType, snListener);
	}
protected void handleNonNetworkShare ( Activity activity , final SocializeSession session , final ShareType shareType , final Share share , String shareText , Location location , final ShareAddListener shareAddListener ) { SocialNetworkListener snListener = new SocialNetworkListener ( ) { @ Override public void onNetworkError ( Activity context , SocialNetwork network , Exception error ) { if ( shareAddListener != null ) { shareAddListener . onError ( SocializeException . wrap ( error ) ) ; } } @ Override public void onCancel ( ) { if ( shareAddListener != null ) { shareAddListener . onCancel ( ) ; } } @ Override public boolean onBeforePost ( Activity parent , SocialNetwork socialNetwork , PostData postData ) { return shareAddListener instanceof SocialNetworkListener && ( ( SimpleShareListener ) shareAddListener ) . onBeforePost ( parent , socialNetwork , postData ) ; } @ Override public void onAfterPost ( Activity parent , SocialNetwork socialNetwork , JSONObject responseObject ) { if ( shareAddListener != null ) { shareAddListener . onCreate ( share ) ; } } } ; shareSystem . share ( activity , session , share , shareText , location , shareType , snListener ) ; }
Handles a non-network share like email or SMS.
Handles a non - network share like email or SMS .