java - Accessing photos uploaded on Google+ -
guys need help on accessing photos google+..they dont have api can provide me functionality. did research on how access them , came know picasa backs photos on google+ , can utilize picasa webservice api accessing them..i did import libraries necessary usage..but still picasa webservice isn't able import necessary classes required work..could please guide me in how can access images user uploaded on google+..thanks in advance..
picasawebservice myservice = new picasawebservice("exampleco-exampleapp-1"); myservice.setusercredentials("myaccount@gmail.com", "mypassword"); url feedurl = new url("https://picasaweb.google.com/data/feed/api/user/myusername/albumid/myalbum"); albumfeed feed = myservice.getfeed(feedurl, albumfeed.class); for(photoentry photo : feed.getphotoentries()) { system.out.println(photo.gettitle().getplaintext()); }
i tried this..but no imports worked..plz help..
this error..
06-24 10:54:51.014: e/androidruntime(28043): fatal exception: main 06-24 10:54:51.014: e/androidruntime(28043): process: com.googleplusdemo, pid: 28043 06-24 10:54:51.014: e/androidruntime(28043): java.lang.verifyerror: com/google/gdata/client/media/mediaservice 06-24 10:54:51.014: e/androidruntime(28043): @ com.gplusdemo.dashboard$ontokenacquired.run(dashboard.java:170) 06-24 10:54:51.014: e/androidruntime(28043): @ android.accounts.accountmanager$11.run(accountmanager.java:1427) 06-24 10:54:51.014: e/androidruntime(28043): @ android.os.handler.handlecallback(handler.java:733) 06-24 10:54:51.014: e/androidruntime(28043): @ android.os.handler.dispatchmessage(handler.java:95) 06-24 10:54:51.014: e/androidruntime(28043): @ android.os.looper.loop(looper.java:136) 06-24 10:54:51.014: e/androidruntime(28043): @ android.app.activitythread.main(activitythread.java:5001) 06-24 10:54:51.014: e/androidruntime(28043): @ java.lang.reflect.method.invokenative(native method) 06-24 10:54:51.014: e/androidruntime(28043): @ java.lang.reflect.method.invoke(method.java:515) 06-24 10:54:51.014: e/androidruntime(28043): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:785) 06-24 10:54:51.014: e/androidruntime(28043): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:601) 06-24 10:54:51.014: e/androidruntime(28043): @ de.robv.android.xposed.xposedbridge.main(xposedbridge.java:132) 06-24 10:54:51.014: e/androidruntime(28043): @ dalvik.system.nativestart.main(native method)
java android google-plus
No comments:
Post a Comment