I have the same problem. I tried pre-compiled jars I extracted from http://gdata-java-client.googlecode.com/files/gdata-src.java-1.30.0.java.zip, and I also tried with the jars I compiled myself from the trunk. I got the same result in both cases: the list of albums (returned by getAlbumEntries method) is empty. Please advise.
Andrey On Mar 4, 5:28 pm, Jeff Fisher <[email protected]> wrote: > Are you using the pre-compiled JAR files or are you linking directly against > the Java source files? In the case of the latter if you do it in Eclipse it > will not have the proper annotations set up so the entries do not know what > kind they are. I recommend using the pre-built JARs. > > Cheers, > -Jeff > > On Tue, Mar 3, 2009 at 8:04 PM, anvii <[email protected]> wrote: > > > Hi all: > > I can not get a list of albums,but I can add an album. > > What is the problem? > > > import java.net.URL; > > import java.util.List; > > > import com.google.gdata.client.photos.*; > > import com.google.gdata.data.photos.*; > > > public class picasa { > > > public static void main(String[] args) { > > // TODO code application logic here > > try { > > PicasawebService myService = new PicasawebService > > ("exampleCo-exampleApp-1"); > > myService.setUserCredentials("[email protected]", "xxxx"); > > > URL feedUrl = new URL("http://picasaweb.google.com/data/ > > feed/api/user/info.anvii?kind=album<http://picasaweb.google.com/data/%0Afeed/api/user/info.anvii?kind=album> > > "); > > > UserFeed myUserFeed = myService.getFeed(feedUrl, UserFeed.class); > > List<AlbumEntry> myAlbums=myUserFeed.getAlbumEntries(); > > System.out.println(myAlbums.size());--->the answer is 0 > > > } catch (Exception e) { > > System.out.println(e.getMessage()); > > } > > } > > } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
