@Override
	public void executeDemo(String text) {
		
		EntityUtils.getEntities(this, 0, PAGE_SIZE, SortOrder.TOTAL_ACTIVITY, new EntityListListener() {
			
			@Override
			public void onList(ListResult<Entity> entities) {
				
				List<Entity> items = entities.getItems();
				Collection<String> strResults = new ArrayList<String>();
				for (Entity socializeAction : items) {
					strResults.add(socializeAction.toString() + " (Total Activity " + socializeAction.getEntityStats().getTotalActivityCount() + ")");
				}
				
				handleResults(strResults);
			}
			
			@Override
			public void onError(SocializeException error) {
				handleError(GetPopularEntitiesActivity.this, error);
			}
		});
	}
@Override
	public void executeDemo(String text) {
		
		EntityUtils.getEntities(this, 0, PAGE_SIZE, SortOrder.TOTAL_ACTIVITY, new EntityListListener() {
			
			@Override
			public void onList(ListResult<Entity> entities) {
				
				List<Entity> items = entities.getItems();
				Collection<String> strResults = new ArrayList<String>();
				for (Entity socializeAction : items) {
					strResults.add(socializeAction.toString() + " (Total Activity " + socializeAction.getEntityStats().getTotalActivityCount() + ")");
				}
				
				handleResults(strResults);
			}
			
			@Override
			public void onError(SocializeException error) {
				handleError(GetPopularEntitiesActivity.this, error);
			}
		});
	}
@ Override public void executeDemo ( String text ) { EntityUtils . getEntities ( this , 0 , PAGE_SIZE , SortOrder . TOTAL_ACTIVITY , new EntityListListener ( ) { @ Override public void onList ( ListResult < Entity > entities ) { List < Entity > items = entities . getItems ( ) ; Collection < String > strResults = new ArrayList < String > ( ) ; for ( Entity socializeAction : items ) { strResults . add ( socializeAction . toString ( ) + " (Total Activity " + socializeAction . getEntityStats ( ) . getTotalActivityCount ( ) + ")" ) ; } handleResults ( strResults ) ; } @ Override public void onError ( SocializeException error ) { handleError ( GetPopularEntitiesActivity . this , error ) ; } } ) ; }
/* (non-Javadoc)
@see com.socialize.demo.DemoActivity#executeDemo()
/ * ( non - Javadoc )