This course is accompanies by exercise files you can use to follow along with the demonstrations on screen. The files include both starting and finished versions of Android Studio projects.
- [Instructor] 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 chapter, with one chapter for each chapter in the course. Within each chapter, you'll find subdirectories for each video. Each of those directories is configured as an Android Studio project. You can see that it's an Android Studio project because it contains subdirectories called APP, that's the module, and gradle, and files called build.gradle and so on.
On Windows, you'll also see a directory named .idea. On Mac, that directory is still there, but it's hidden in finder. In order to open any of these projects, you'll need Android Studio 2.3.1 or later. That was the most stable version of Android Studio as of the time this course was recorded. To open any of the projects, go to the welcome screen, select open in existing Android Studio, and go to the desktop if that's where you copied the files.
You can press ctrl + d on Windows, or cmd + d on Mac, to jump to the desktop directory. From there open up the exercise files. Then go to the directory that contains the project you want to work with. I'll go to chapter two. Then choose a directory that contains a project. The project should be marked with the Android Studio icon. Select it and click OK, and that will open the project. If you're using a more recent version of Android Studio, you might be prompted to update your gradle plug-in to the most recent version.
Go ahead and accept any upgrades that are offered. Also, if there are any components from the Android SDK or support libraries that your project needs, you'll be prompted to download those. And again, I recommend accepting all those prompts. All of the projects that are used in this course have a target SDK version of 25 for Android 7.1. And a minimum SDK version of API 19. They've been built with build tools version 25.0.2.
So you'll need to download that version of the build tools to your system. If you don't have that version of the build tools, you can go to the SDK manager. From there, click on SDK tools and click on show package details. Take a look to see which versions of the build tools you have. You can have more than one version of the build tools installed at the same time. When I recorded this course, I was working with build tools version 25.0.2. As for working with these versions of various other components, SDK platform tools 25.0.4, SDK tools 26.0.1, and constraint layout 1.0.2 When you test your application, you can use a device running Android 5 or later, but I recommend using version 7 if you can.
If you don't have a physical device that runs version 7, you can create one through the AVD manager. I'm demonstrating all of my applications using a virtual device running on API 25. Android 7 .1.1 So those are the exercise files. You can use these exercise files that are included with the course, or you can create your own apps to try out the techniques that I describe in this course.
David also shows how to send and receive broadcast messages that let you exchange data and notifications among the different tiers of your application. He demonstrates how to work with menus and the action bar, add a navigation drawer to a layout, and tackle advanced navigation techniques. Later courses in the Essentials series concentrate on other specific skills you can master.
- Working with events
- Handling events with Java objects and lambda expressions
- Managing navigation
- Sending data to an activity
- Opening other apps with implicit intents
- Sending and receiving broadcast messages
- Working with menus and the action bar
- Adding a navigation drawer
- Advanced navigation techniques
- Removing activities from the back stack