Accessing Flickr image URL

Let's examine the Java program step by step to understand the concepts behind the screen. The DigitalPhotoFrame project consists of a single file, named DigitalPhotoFrame.java.

The DigitalPhotoFrame.java file is part of the com.packt.B05688.chapter3 package, which begins with this:

package com.packt.B05688.chapter3;

Then, import all the necessary packages to the class:

import java.net.*;import java.io.*;import javax.xml.parsers.*;import org.w3c.dom.*;

Then, create a URL object from: https://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=9edadc37bf9d3661deea534c77effaf0&photoset_id=72157659233917324&user_id=128978031@N04&privacy_filter=1 using the URL constructor, public URL(String spec) ...

Get Raspberry Pi 3 Projects for Java Programmers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.