Join David Gassner for an in-depth discussion in this video Using the exercise files, part of Android App Development Essential Training.
- View Offline
- This course is accompanied by exercise files that you can use to follow along with the demonstrations onscreen. I've copied the exercise files to my desktop, but you can place them anywhere on your hard disk. The files are organized by chapter with one directory for each chapter in the course. Within these chapters, you will find subdirectories for each video. And within those directories, a subdirectory for an Android Studio project. The Android Studio project will have folder names like app and gradle and files like build.gradle.
If you open this folder on Windows, you'll also see files and folders starting with a dot but on Mac, those files and folders will be hidden. To open any of these projects in Android Studio, go to the Android Studio Welcome Screen. Then click Open an existing Android Studio project. On Windows, you'll get to a custom dialogue and you can press ctrl + d to jump to the desktop directory. On Mac, you'll see a finder dialogue and you can press cmd + d to do the same thing.
Then, drill down to the directory you're interested in and you should find that the directory is marked by an Android Studio icon. Then click OK to open the directory. The first time you open one of these projecs in Android Studio, it might take a couple of minutes while Android Studio downloads some required components. But after that, opening each project should take just a few seconds. From there, you can go to the project window by clicking on the tab on the left or you can move your cursor over the icon in the lower left and you'll see a pop-up list of available windows.
And you should be able to find the project window there as well. Within the project window, you'll see an app directory. This represents something called a module. And within that, there are subdirectories for manifests, Java, and resources named res. There's also a directory named Gradle Scripts. I'll describe each of these directories in detail when I talk about project structure early in the course. Once the project has been opened, watch for any messages at the bottom of the screen.
And once everything has stopped, you should then be able to run the app. You'll need a virtual or a physical device that's been set up for development but then you click the Run button on the toolbar or choose one of the options on the Run menu. The exercise files also come with solution projects. These are the under the Solutions directory and you'll see the same directory and project structure here. These versions of the projects have the finished code, the code that existed at the end of each demonstration.
Finally, there's an Assets directory. This directory contains graphic files. There's a logo PNG file. Also a set of images that I'll use to build a simple ecommerce app and then one file under Source. And this is an original PNG flle that I created in Adobe Fireworks that has transparency and layers. You won't use this file in the actual application development process but if you wanted to make a change to the file, you could open this in Fireworks directly if you have access to that software or you could import it into Illustrator.
So those are the available exercise files that you can use to follow along with this course.
- Installing and configuring Android Studio
- Creating virtual devices and connecting physical devices for testing
- Working with project files such as the app manifest and Gradle scripts
- Defining the user interface
- Modifying material design themes and styles
- Adding views
- Displaying messages
- Handling events and changes in screen orientation
- Displaying images
- Managing navigation with activities and layouts
- Supporting different screen sizes
- Working with data