> Documentation index: https://developer.android.com/courses/llms.txt

# Load and display images from the internet


Apply architecture best practices to the app and use Coil to download and display images.  


Go back

## Architecture: The Data Layer

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

In this video, you'll learn about the data layer and its two basic components: repositories and data sources. We'll also cover data immutability, error handling, threading, testing, and more tricks and recommendations.

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Add repository and Manual Dependency Injection

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Refactor the Mars Photos app and add a repository to organize how data sources interact with the rest of the app.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-add-repository)

## Load and display images from the internet

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

In this codelab, you use the Coil library to load and display photos from the internet in your Android Compose app.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-load-images)

## Practice: Build amphibians app

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Take an app that displays information about different amphibian species and use your knowledge of networking, JSON parsing, and view models to enable the app to use data from the network. The app receives its data from a custom API for this project and displays it in a list.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-practice-amphibians-app)

## Project: Create a Bookshelf app

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Create an app that downloads and displays book images from the Google Books API.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-bookshelf)

## What's next?

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

In this unit, you learned important topics, such as offloading work from the main thread by using coroutines and consuming REST services to work with remote data!

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Quiz

Test your knowledge and earn your Load and display images from the internet badge.
[Take the quiz](https://developer.android.com/courses/quizzes/android-basics-compose-unit-5-pathway-2/android-basics-compose-unit-5-pathway-2.md.txt)