@Override
	public void executeDemo(String text) {
		
		// We are going to list comments just so we can get the ID for a single comment
		// Usually you would NOT do this as you would usually already have an ID (e.g. from a click on a list view)
		CommentUtils.getCommentsByEntity(this, entity.getKey(), 0, 1, new CommentListListener() {
			
			@Override
			public void onList(ListResult<Comment> comments) {
				
				// Use the id from the first comment
				if(comments.getTotalCount() > 0) {
					CommentUtils.getComment(GetCommentsByIDActivity.this, new CommentGetListener() {
						@Override
						public void onGet(Comment comment) {
							handleSocializeResult(comment);
						}
						
						@Override
						public void onError(SocializeException error) {
							handleError(GetCommentsByIDActivity.this, error);
						}
					}, comments.getItems().get(0).getId());
				}
			}
			
			@Override
			public void onError(SocializeException error) {
				handleError(GetCommentsByIDActivity.this, error);
			}
		});
	}
@Override
	public void executeDemo(String text) {
		
		
		
		CommentUtils.getCommentsByEntity(this, entity.getKey(), 0, 1, new CommentListListener() {
			
			@Override
			public void onList(ListResult<Comment> comments) {
				
				
				if(comments.getTotalCount() > 0) {
					CommentUtils.getComment(GetCommentsByIDActivity.this, new CommentGetListener() {
						@Override
						public void onGet(Comment comment) {
							handleSocializeResult(comment);
						}
						
						@Override
						public void onError(SocializeException error) {
							handleError(GetCommentsByIDActivity.this, error);
						}
					}, comments.getItems().get(0).getId());
				}
			}
			
			@Override
			public void onError(SocializeException error) {
				handleError(GetCommentsByIDActivity.this, error);
			}
		});
	}
@ Override public void executeDemo ( String text ) { // We are going to list comments just so we can get the ID for a single comment // Usually you would NOT do this as you would usually already have an ID (e.g. from a click on a list view) CommentUtils . getCommentsByEntity ( this , entity . getKey ( ) , 0 , 1 , new CommentListListener ( ) { @ Override public void onList ( ListResult < Comment > comments ) { // Use the id from the first comment if ( comments . getTotalCount ( ) > 0 ) { CommentUtils . getComment ( GetCommentsByIDActivity . this , new CommentGetListener ( ) { @ Override public void onGet ( Comment comment ) { handleSocializeResult ( comment ) ; } @ Override public void onError ( SocializeException error ) { handleError ( GetCommentsByIDActivity . this , error ) ; } } , comments . getItems ( ) . get ( 0 ) . getId ( ) ) ; } } @ Override public void onError ( SocializeException error ) { handleError ( GetCommentsByIDActivity . this , error ) ; } } ) ; }
/* (non-Javadoc)
@see com.socialize.demo.DemoActivity#executeDemo()
/ * ( non - Javadoc )