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

# Add a button to an app


Learn how to respond to a button click in an Android app.  


Go back

## Intro to Dice Roller app

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

Learn about Dice Roller, the app you will be building in this pathway.

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

## Create an interactive Dice Roller app

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

Learn how to build an interactive Dice Roller app that lets users roll a dice and then shows them the result.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-build-a-dice-roller-app)

## Use the debugger in Android Studio

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

Learn how to use the debugger in Android Studio to inspect and debug the state of your app at runtime.

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

## Practice: Click behavior

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

Apply what you learned about button click behavior to build an app.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-button-click-practice-problem)

## What's next?

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

Great job on building the Dice Roller app! In this pathway you've used your kotlin knowledge to build your first interactive app.

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

## Quiz

Test your knowledge and earn your Dice Roller badge.
[Take the quiz](https://developer.android.com/courses/quizzes/android-basics-compose-unit-2-pathway-2/android-basics-compose-unit-2-pathway-2.md.txt)