Hi All, I am using the sample code provided at http://code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/photos/PicasawebClient.java
I am using the code given there: After I get my PicasawebService object and then I set credentials to authenticate. It succeeds. Then I get the feed using the URL: http://picasaweb.google.com/data/feed/api/user/default http://picasaweb.google.com/data/feed/api/user/default?kind=album I tried with both URLs given above I get the feed and then I do the following (Note that this code is taken as it is from the sample code shared at above mentioned address) UserFeed userFeed = getFeed(albumUrl, UserFeed.class);//albumUrl is the URL from address // mentioned above. This func calls // getFeed of the PicasawebService List<GphotoEntry> entries = userFeed.getEntries(); /*Here if I check the entries.size(), it gives me count equal to the number of albums that I had for this user*/ List<AlbumEntry> albums = new ArrayList<AlbumEntry>(); for (GphotoEntry entry : entries) { GphotoEntry adapted = entry.getAdaptedEntry(); /*Here is the problem, I am getting adapted as null, so none of the entries is counted as AlbumEntry and hence, the count of number of albums is 0*/ if (adapted instanceof AlbumEntry) { albums.add((AlbumEntry) adapted);//Later, I would use this albums to show Album names. } } I am quite sure that the count of entries that I am getting from entries.size() is same as the number of albums. I tried adding more albums to account by PC browser and then this gives me the increased value. I even tried adding more albums using Picasa Web Albums API code also, and then also on getting the count, it gives me the increased value. So, adding albums using Picasa Web API is success, but not getting them back. Can any one please help. Thanks - Raman --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-picasa-data-api?hl=en -~----------~----~----~----~------~----~------~--~---
