Samples

Welcome to code samples for Android developers. Here you can browse sample code and learn how to
build different components for your applications. Use the categories on the left to browse the
available samples.

Each sample is a fully functioning Android app. You can browse the resources, source files and
see the overall project structure. You can copy and paste the code you need, and if you want to
share a link to a specific line you can double-click it to the get the URL.

Download Samples

Although importing samples from Android Studio is the recommended method, you can also use the
categories on the left to browse the available samples and learn how to build different components
for your applications.

If you want to download a complete project, just click on any source file in the project and
click the Download link in the upper right of the source page.