Hi all,
i am using gdata picasa APIs to develop picasa application for android mobile .
i am using the following piece of code ,
public List getAlbums(String username) throws IOException, ServiceException {
String albumUrl = API_PREFIX + username;
UserFeed userFeed = getFeed(albumUrl, UserFeed.class);
List<GphotoEntry> entries = userFeed.getEntries();
List<AlbumEntry> albums = new ArrayList<AlbumEntry>();
for (GphotoEntry entry : entries) {
GphotoEntry adapted = entry.getAdaptedEntry();
if (adapted instanceof AlbumEntry) {
albums.add((AlbumEntry) adapted);
}
}
return albums;
}
I am able to get nor of entries equal to the nor of albums i am having in the account.
But, entry.getAdaptedEntry() is returning null.
please suggest me what i can do.
thanks in advance, Babitha