私はここで単に私が持っているのとまったく同じ問題を抱えています。彼は答えられていないようで、このサイトでこの質問を見つけることができなかったので、このコミュニティの前に置くことにしました.
何らかの理由で GphotoEntry は機能しますが、PhotoEntry は何も返しません。PhotoEntry で getMediaSource() メソッドを使用する必要があります。GphotoEntry では使用できません。
これが私のコードです (try-catch ステートメントに含まれている必要がありますが、ここでは省略しています)。あなたは私のために働く行をコメントアウトしたことに気付くでしょう:
URL baseSearchUrl = new URL("https://picasaweb.google.com/data/feed/api/all");
Query myQuery = new Query(baseSearchUrl);
myQuery.setStringCustomParameter("kind", "photo");
myQuery.setMaxResults(10);
myQuery.setFullTextQuery("puppy");
AlbumFeed searchResultsFeed = myService.query(myQuery, AlbumFeed.class);
//for (GphotoEntry photo : searchResultsFeed.getEntries()) {
for (PhotoEntry photo : searchResultsFeed.getPhotoEntries()) {
System.out.println(photo.getTitle().getPlainText());
}
私はあなたの助けに感謝します