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

Using the exercise files - Android Tutorial

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

Start my 1-month free trial

Using the exercise files

- The exercise files for this course are stored on GitHub. There are branches for both the start and end states of each video, where we work on code. You do a list of all of the branches here and GitHub from the branch dropdown. For example, if you wanted to find the start state for video 0201 managed string values as resources, then you would change to the 0201b branch. And the ending state would be found in the 0201e branch. There are multiple ways to work with this project in Android studio. One simple way is to copy over the URL from the code button. You can find the code button here to the right, and when you click on it, it's going to open up a new window and then you can copy the URL by clicking here. With that URL copied we'll move over to the Android studio welcome screen to check it out. Here on the welcome screen, select Git from Version Control. This is going to open up a new window where you can paste the URL. We're going to paste it here inside of the URL field, and then we'll click clone to download the project. Let's select yes, to open it up. You may receive a few dialogues asking if you want to add the files to Gid, ignore those. But chances are by the time you download the files, there will be updates to Android studio and the associated plugins. If you receive a dialogue asking you to upgrade your dependencies, please do so then wait for the project to sync. It typically takes longer when the project loads for the first time. Once it's complete however, you're ready to work with this version of the code. By default, we're running the code from the master branch. As I mentioned earlier, I've created branches for each video in the course where we modify code. If you'd like to follow along, use the branches popup menu in the lower right corner to change to your desired branch. As an example, let's check out the code for the start of the 0201 video. We'll choose it here from the branches menu, then we'll go to 0201b and then we'll create a new branch from the selected. Typically I'll use the same name. 0201b and then I'll check it out. Then you can rebuild your project to ensure that you're working with the code from this newly selected branch. To reboot your project, choose the Make Project icon, which is the green hammer. Once that's complete, we're now ready to work with this version of the code. If you run into trouble, checking out the different branches or using Git in general. I recommend searching the library for the Git essential training videos.

Contents