Dear all,

I am new to Picasa Web API, i have been under the development of an
ERP.  for that purpose i'm planning to use Picasa web albums API.

The problem i am getting is, When i want to delete an album using
AlbumEntry object

Eg:
public void deleteAlbum(String albumId) {
                String albumPostURL = baseURL + ("base/user/" +
CLIENT_USERNAME.split("@")[0] + "?kind=album");
                // String albumPostURL = baseURL + ("base/user/" +
                // CLIENT_USERNAME.split("@")[0] + 
"/album/"+albumId+"?kind=album");
                System.err.println("==========================" + albumPostURL);
                try {

                        UserFeed userFeed = myService.getFeed(new 
URL(albumPostURL),
UserFeed.class);
                        List<AlbumEntry> l = userFeed.getAlbumEntries();
                        l.size();
                        System.err.println(">>>>>>>>>>>>>>>>>>>>>>>>>>" + 
albumId);
                        for (AlbumEntry myAlbum : userFeed.getAlbumEntries()) {
                                myAlbum.setCanEdit(true);
//                              if (myAlbum.getId().contains(albumId)) {
                                if 
(albumId.equalsIgnoreCase((((myAlbum.getId().split("/albumid/")
[1]).split("hl=en_US")[0]).split("\\?")[0]))) {
                                        
System.err.println(">>>>>>>>>>>>>>>>>>>>>>>>>>" +
myAlbum.getId());
                                        try {
                                                myAlbum.delete();
                                                System.err.println("album 
Deleted successfully");
                                                break;
                                        } catch (UnsupportedOperationException 
uoexcep) {
                                                System.err.println("Printing 
the exception" +
uoexcep.getLocalizedMessage());
                                        }

I am getting an error called unsupportedOperationException on
MYALBUM.delete() line...

Can any one help to get rid of this...

Thanks in advance.

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