@Override protected PhotoList<Photo> flickrProcess(String path) { try { final CollectionsInterface collectionsInterface = flickr.getCollectionsInterface(); final Matcher matcher = r.matcher(path); matcher.find(); final String userName = matcher.group(1); final String collectionsId = matcher.group(2); final List<Collection> collections = collectionsInterface.getTree(collectionsId, userName); final PhotoList<Photo> pl = new PhotoList<Photo>(); for (final Collection c : collections) pl.addAll(c.getPhotos()); return pl; } catch (final Exception e) { e.printStackTrace(); } return null; }
final CollectionsInterface collectionsInterface = flickr.getCollectionsInterface();
final CollectionsInterface collectionsInterface = flickr.getCollectionsInterface();