cant get images by givent album id. MediaItemsService.getMediaItems(albumId

0 views
Skip to first unread message

Chris Ma

unread,
Jul 13, 2010, 12:38:01 AM7/13/10
to OpenSocial Client Libraries
In OpenSocial-java-client android demo code:

I can get any information about a users' albums,(id,)

try {
Request request = AlbumsService.getAlbums();
album = client.send(request).getEntries();

but when I try to get all mediaitem in albums, I keep getting null

for(Album a: album){
String albumId = a.getId();
Log.i("album id is:",albumId);
try {
Request request =
MediaItemsService.getMediaItems(albumId);
mediaitem =
client.send(request).getEntries();
Log.i("mediaitem size is:",mediaitem.size()
+"");

the mediaitem size is 0, but my albums are not empty(1has 1 photo 1
has 3 photos).

Can anyone tell me how to track the http request&response
information?
I have tried to use response.toString, get such infor
org.opensocial.Response@43dede18.

Chris Ma

unread,
Jul 14, 2010, 2:40:31 PM7/14/10
to OpenSocial Client Libraries
Btw, I am using Opensocial.jar file which updated in Feb 2010
because I keep getting http 400 error with latest lib
Reply all
Reply to author
Forward
0 new messages