伙计我需要一些关于从谷歌+访问一些照片的帮助..他们没有任何API可以提供我的功能。 我做了一些关于如何访问它们的研究,并且知道Picasa还在google +上备份了它的照片,我可以使用Picasa Webservice API来访问它们。我确实导入了其使用所需的所有库..但仍然Picasa网络服务无法导入工作所需的必备课程。请有人指导我如何访问用户在Google +上传的图片..提前致谢..
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());
}
我试过这个..但没有进口工作..plz帮助..
这是错误..
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): at com.gplusdemo.DashBoard$OnTokenAcquired.run(DashBoard.java:170)
06-24 10:54:51.014: E/AndroidRuntime(28043): at android.accounts.AccountManager$11.run(AccountManager.java:1427)
06-24 10:54:51.014: E/AndroidRuntime(28043): at android.os.Handler.handleCallback(Handler.java:733)
06-24 10:54:51.014: E/AndroidRuntime(28043): at android.os.Handler.dispatchMessage(Handler.java:95)
06-24 10:54:51.014: E/AndroidRuntime(28043): at android.os.Looper.loop(Looper.java:136)
06-24 10:54:51.014: E/AndroidRuntime(28043): at android.app.ActivityThread.main(ActivityThread.java:5001)
06-24 10:54:51.014: E/AndroidRuntime(28043): at java.lang.reflect.Method.invokeNative(Native Method)
06-24 10:54:51.014: E/AndroidRuntime(28043): at java.lang.reflect.Method.invoke(Method.java:515)
06-24 10:54:51.014: E/AndroidRuntime(28043): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
06-24 10:54:51.014: E/AndroidRuntime(28043): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
06-24 10:54:51.014: E/AndroidRuntime(28043): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
06-24 10:54:51.014: E/AndroidRuntime(28043): at dalvik.system.NativeStart.main(Native Method)