From the course: Android Development Essential Training: 2 User Interface Design

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Load a network image

Challenge: Load a network image - Android Tutorial

From the course: Android Development Essential Training: 2 User Interface Design

Start my 1-month free trial

Challenge: Load a network image

(upbeat music) - [Instructor] Hey folks, challenge time. In this challenge, we're going to be loading an image from the network. Let's take a look at what you'll be building. Your application will have an image view and one switch. This switch will have a label toggle images. There will be no image displayed when the app first loads. However, when the user clicks on the switch, it's going to toggle between two images that are loaded from the network. You'll want to use the sample project provided in the Exercise Files for this challenge as I've already done a bit of the heavy lifting for you. Let's take a look. The first thing I've done is to declare the use of the internet permission in the Android manifest file. We can see that here on line number five. This permission is important because we want to display images that are downloaded from the network. Next, in the app's build.gradle file, I've added a new dependency…

Contents