public static void tweetPhoto(final Activity context, final PhotoTweet photo, final SocialNetworkPostListener listener) {
    """
	Publishes a photo to a user's Twitter feed.  If the user is not currently linked to a Twitter account they will be prompted to authenticate.
	@param context The current Activity.
	@param photo The image to be tweeted.
	@param listener A listener to handle the result.
    """
		if(proxy.isLinked(context)) {
			proxy.tweetPhoto(context, photo, listener);
		}
		else {
			proxy.link(context, new SocializeAuthListener() {
				
				@Override
				public void onError(SocializeException error) {
					if(listener != null) {
						listener.onNetworkError(context, SocialNetwork.TWITTER, error);
					}
				}
				
				@Override
				public void onCancel() {
					if(listener != null) {
						listener.onCancel();
					}
				}
				
				@Override
				public void onAuthSuccess(SocializeSession session) {
					proxy.tweetPhoto(context, photo, listener);
				}
				
				@Override
				public void onAuthFail(SocializeException error) {
					if(listener != null) {
						listener.onNetworkError(context, SocialNetwork.TWITTER, error);
					}
				}
			});			
		}
	}
public static void tweetPhoto(final Activity context, final PhotoTweet photo, final SocialNetworkPostListener listener) {
		if(proxy.isLinked(context)) {
			proxy.tweetPhoto(context, photo, listener);
		}
		else {
			proxy.link(context, new SocializeAuthListener() {
				
				@Override
				public void onError(SocializeException error) {
					if(listener != null) {
						listener.onNetworkError(context, SocialNetwork.TWITTER, error);
					}
				}
				
				@Override
				public void onCancel() {
					if(listener != null) {
						listener.onCancel();
					}
				}
				
				@Override
				public void onAuthSuccess(SocializeSession session) {
					proxy.tweetPhoto(context, photo, listener);
				}
				
				@Override
				public void onAuthFail(SocializeException error) {
					if(listener != null) {
						listener.onNetworkError(context, SocialNetwork.TWITTER, error);
					}
				}
			});			
		}
	}
public static void tweetPhoto ( final Activity context , final PhotoTweet photo , final SocialNetworkPostListener listener ) { if ( proxy . isLinked ( context ) ) { proxy . tweetPhoto ( context , photo , listener ) ; } else { proxy . link ( context , new SocializeAuthListener ( ) { @ Override public void onError ( SocializeException error ) { if ( listener != null ) { listener . onNetworkError ( context , SocialNetwork . TWITTER , error ) ; } } @ Override public void onCancel ( ) { if ( listener != null ) { listener . onCancel ( ) ; } } @ Override public void onAuthSuccess ( SocializeSession session ) { proxy . tweetPhoto ( context , photo , listener ) ; } @ Override public void onAuthFail ( SocializeException error ) { if ( listener != null ) { listener . onNetworkError ( context , SocialNetwork . TWITTER , error ) ; } } } ) ; } }
Publishes a photo to a user's Twitter feed.  If the user is not currently linked to a Twitter account they will be prompted to authenticate.
@param context The current Activity.
@param photo The image to be tweeted.
@param listener A listener to handle the result.
Publishes a photo to a user s Twitter feed . If the user is not currently linked to a Twitter account they will be prompted to authenticate .