Join David Gassner for an in-depth discussion in this video Using the exercise files, part of Android 6.0 New Features for Developers.
This course is accompanied by Exercise Files that you can use to follow along with many of the demonstrations. I've copied the Exercise Files to my desktop, but you can place them anywhere on your hard disk. The Exercise Files are organized by chapter. Within each chapter you'll find some folders named for the particular videos. For example, the first video in chapter 2 will have a folder named 02.01, and under that you'll find folders which are designed as Android Studio projects.
You can identify an Android Studio project by looking at the folder's contents. You'll find folders named app and gradle and files named build.gradle and gradle.properties. To open any of these Android Studio projects go to the Android Studio Welcome screen. Click Open an existing Android Studio project and then navigate to your Exercise Files folder. Then drill down to the folder for that video, choose the folder for that project, and open it.
The first time you open any of the projects from the Exercise Files folder it might take a while, while Android Studio downloads certain required components, but after you've successfully opened that first project, the rest of the projects should open very quickly. You can look at the structure of the projects by going to the Project window, and to see the actual structure of the files and folders, select the Project View. Then open the folder for that project. The actual project files are a few folders down.
Go to app, then source, and then main, and you'll find subfolders for Java code, for resources, and for assets. To see a filtered view of all of these files and folders, choose the Android View, and that will show you only the files and folders that you'll typically use on a day-to-day basis, including the AndroidManifest, your Java classes, resources, and for some projects, assets. Once you've opened a project successfully, you should then be able to run it on a physical device that you've connected to your computer with USB debugging or to a virtual device that you've created through the AVD Manager.
In addition to the beginning projects, I've also included a Solutions folder. This has the same set of folders and subfolders, but these are the finished projects for any projects where I've done work during the demonstration. Also, for many of the demonstrations in this course I'm doing walkthroughs of existing code samples from Google. You can get to those code samples through the Welcome screen by choosing Import an Android code sample. From there, you can scroll around to look for the code samples you're interested in, or if you know what you're looking for, you can type a string in the text box.
So, for example, if I type direct share, that will take me to two different sample app records. You can download and import the project directly from this screen or you can click the link to browse the source for the project in GitHub. So that's a look at how to use the Exercise Files that I've included with the project and how to import sample applications directly from Google.
In this short training course, David Gassner shows how to authenticate users using device credentials or the fingerprint scanner, configure apps for backup, test backups to Google servers, and use app links, website associations, and voice interactions. Plus, learn how to control data display in activity layouts with the new data-binding framework.