This course is accompanied by exercise files that you can use to follow along with the demonstrations. The exercise files are organized by chapter. Within each chapter, you'll find a number of subfolders, one for each video, each organized as an Android Studio project. I'll describe how to open these projects in Android Studio, and also show which components of the Android SDK you'll need to have installed on your development computer.
- [Voiceover] This course is accompanied by exercise files that you can use to follow along with the demonstrations on screen. 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 chapters. Within each chapter you'll find a series of folders, one for each video. And within the folder for that video you'll find a folder that's organized as an Android Studio project. In order to open any of these projects from within Android Studio you'll need to make sure that you have a certain minimum version of certain components.
In the SDK Manager I'll show you that I'm working with Android 6.0, APILevel 23. And I'll open the Package Details and show that I have the Android source code installed. Under SDK Tools, again I'll show Package Details, and show that I'm working with Android SDK Build-tools 23.0.2. If you have a newer version of Build-tools installed on your computer you can install this version side by side with that so you can open the exercise files easily without having to change any configurations.
The rest of my components are minimum versions. For example, for SDK Tools you can use 24.4.1 or anything later. I'm also using the Android Support Repository, revision 25 and Google Repository, revision 24. In order to open any of the projects go to the Welcome screen and then select Open an existing Android Studio project. If you copied exercise files to the desktop you can press Command + D on Mac or Control + D on Windows to go to the Desktop folder.
Then drill down to the folder you're interested in, select the project folder and open it. The first time you open any of the projects from the exercise files It might take a few moments for everything to be put together. Android Studio might prompt you for missing components. If so, click the appropriate links to download those components. You should need to do that only once. Once you've opened the project I recommend starting from the MainActivity class.
Press the Shift key twice, type MainActivity and then Enter or Return. Then to locate that file in the project go to the Project window and click the Scroll from Source icon. And that'll jump to the files location. Throughout the course, I'll primarily be using a physical device, an Android 5X. For most of the exercises, though, you can just as easily use an Android emulator. It's up to you. So that's how to get started with the exercise files.
I'm using Android Studio 1.5.1 in this course. You should be able to use this version or anything later.
Watch these Java tutorials to learn smarter, more efficient methods for Android app development.
- Preparing the development environment
- Packaging and running Android apps
- Optimizing Java code for Android
- Implementing event handler interfaces
- Defining custom callback methods
- Working with the Android SDK's Java packages
- Storing data
- Reading text files
- Parsing JSON and XML data
- Managing device sensors
- Playing audio