@Override
	public void executeDemo(final String text) {
		
		TwitterUtils.link(this, new SocializeAuthListener() {
			
			@Override
			public void onError(SocializeException error) {
				handleError(TweetActivity.this, error);
			}
			
			@Override
			public void onCancel() {
				handleCancel();
			}
			
			@Override
			public void onAuthSuccess(SocializeSession session) {
				
				Tweet tweet = new Tweet();
				
				tweet.setText(text);
				tweet.setLocation(LocationUtils.getLastKnownLocation(TweetActivity.this));
				tweet.setShareLocation(true);
				
				TwitterUtils.tweet(TweetActivity.this, tweet, new SocialNetworkListener() {
					
					@Override
					public boolean onBeforePost(Activity parent, SocialNetwork socialNetwork, PostData postData) {
						// Nothing to see here.. move along.
						return false;
					}

					@Override
					public void onNetworkError(Activity context, SocialNetwork network, Exception error) {
						handleError(TweetActivity.this, error);
					}
					
					@Override
					public void onCancel() {
						handleCancel();
					}
					
					@Override
					public void onAfterPost(Activity parent, SocialNetwork socialNetwork, JSONObject responseObject) {
						handleResult(responseObject.toString());
					}
				});
			}
			
			@Override
			public void onAuthFail(SocializeException error) {
				handleError(TweetActivity.this, error);
			}
		});
	}
@ Override public void executeDemo ( final String text ) { TwitterUtils . link ( this , new SocializeAuthListener ( ) { @ Override public void onError ( SocializeException error ) { handleError ( TweetActivity . this , error ) ; } @ Override public void onCancel ( ) { handleCancel ( ) ; } @ Override public void onAuthSuccess ( SocializeSession session ) { Tweet tweet = new Tweet ( ) ; tweet . setText ( text ) ; tweet . setLocation ( LocationUtils . getLastKnownLocation ( TweetActivity . this ) ) ; tweet . setShareLocation ( true ) ; TwitterUtils . tweet ( TweetActivity . this , tweet , new SocialNetworkListener ( ) { @ Override public boolean onBeforePost ( Activity parent , SocialNetwork socialNetwork , PostData postData ) { return false ; } @ Override public void onNetworkError ( Activity context , SocialNetwork network , Exception error ) { handleError ( TweetActivity . this , error ) ; } @ Override public void onCancel ( ) { handleCancel ( ) ; } @ Override public void onAfterPost ( Activity parent , SocialNetwork socialNetwork , JSONObject responseObject ) { handleResult ( responseObject . toString ( ) ) ; } } ) ; } @ Override public void onAuthFail ( SocializeException error ) { handleError ( TweetActivity . this , error ) ; } } ) ; }
/* (non-Javadoc)
@see com.socialize.demo.DemoActivity#executeDemo()