well i've been working on creating a client for the PWA. However i
learnt that android does not support tha PWA Api yet. So what we have
to do is to follow the underlying protocol that has been used to
design the API.

i'll give you the link to the protocol section:
http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_protocol.html

On Feb 3, 7:18 am, mmm <[email protected]> wrote:
> Hi,
>
> I got same problem like u.
>
> The problem is can't read class name from META_INF/gdata/kinds/*.
>
> U need to modify getAdaptorClass at gdata/data/Kind.java.
>
> Like this,
>
> InputStream serviceStream;
>
> try{
> serviceStream = new FileInputStream("/tmp/data/"+termService);
>
> }
>
> put all those files from META_INF/gdata/kinds/* in somewhere in ur
> android file System(eg,/tmp/data).
>
> Then,should b ok.
>
> On Dec 20 2009, 7:26 pm, squibber <[email protected]> wrote:
>
>
>
> > Hi,
>
> > I am using the latest google data api (140) and try to get all albums
> > for a user.
>
> > The feed is 
> > http://picasaweb.google.com/data/feed/api/user/[email protected]?kind=album
>
> > On a JavaSE environment it works fine, returning all album information
> > for that user. However on an AndroidOS the same code returns null!
>
> > After debugging the google data api I find out thatgetAdaptedEntry()
> > always returns null though AlbumEntries are available. Again it is
> > always null only when running on AndroidOS. By the way, retrieving an
> > album by id does also work on AndroidOS.
>
> > I use the methods provided in PicasawebClient (sample app). It does
> > not matter if I use
>
> > public List<AlbumEntry> 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;
> >   }
>
> > from the PicasawebClient or change the method to
>
> > public List<AlbumEntry> getAlbums(String username) throws IOException,
> >       ServiceException {
>
> >     String albumUrl = API_PREFIX + username;
> >     UserFeed userFeed = getFeed(albumUrl, UserFeed.class);
>
> >     userFeed.getAlbumEntries();
> >     return albums;
> >   }
>
> > Does someone have a clue whengetAdaptedEntry() returns null??

-- 
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.

Reply via email to