public static void tweet(final Activity context, final Tweet tweet, final SocialNetworkListener listener) {
		if(proxy.isLinked(context)) {
			proxy.tweet(context, tweet, 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.tweet(context, tweet, listener);
				}
				
				@Override
				public void onAuthFail(SocializeException error) {
					if(listener != null) {
						listener.onNetworkError(context, SocialNetwork.TWITTER, error);
					}
				}
			});			
		}
	}
public static void tweet ( final Activity context , final Tweet tweet , final SocialNetworkListener listener ) { if ( proxy . isLinked ( context ) ) { proxy . tweet ( context , tweet , 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 . tweet ( context , tweet , listener ) ; } @ Override public void onAuthFail ( SocializeException error ) { if ( listener != null ) { listener . onNetworkError ( context , SocialNetwork . TWITTER , error ) ; } } } ) ; } }
Performs a simple "tweet". If the user is not currently linked to a Twitter account they will be prompted to authenticate.
@param context The current Activity.
@param tweet The Tweet to be tweeted.
@param listener A listener to handle the result.