From the course: Android Development Essential Training: 3 Navigation

Following along with the course - Android Tutorial

From the course: Android Development Essential Training: 3 Navigation

Start my 1-month free trial

Following along with the course

- [Instructor] The exercise files for this course are stored on GitHub. They're branches for both the start and instates of each video where we work on code. You can view a list of all of the branches here in GitHub from the branch drop down. For example, if you wanted to find the start state for video 02_01, then you would change to the 02_01b branch and the ending state would be in the 02_01e branch. There are multiple ways to work with this project inside of Android Studio. One simple way is to copy the URL from the code button. We come to code and then we'll select the URL. Then we'll move over to Android studio to check it out. We're here on the Android Studio welcome screen. We're going to click the get from version control link. Then we'll paste the URL. Since I have two factor authentication set up for my account, I also need to supply my username and my token. Chances are you won't have to make the same updates. And then we'll click the clone button. You may receive a few dialogues asking if you want to add the files to git, you can ignore those but chances are by the time you download the files there will be updates to Android Studio and the associated plug-ins. If you receive a dialogue asking you to upgrade your dependencies please do so, then wait for the project to sync. It typically takes a little bit 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 main branch. As I mentioned earlier, I've created branches for each video in the course where we modify code. If you like to follow along, use the branches pop-up 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 02_01 video. We'll click on main and then we'll scroll down to where we see origin/02_01b. Then we'll click on the arrow and select checkout. Now we have the code for the 02_01 video. We can then rebuild our project to ensure that we're working with the code from this newly selected branch. We can rebuild the project by going up to the top menu and clicking on 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