Join David Gassner for an in-depth discussion in this video Using the exercise files, part of Building Apps for Android Wear Devices.
- 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 subfolder for each chapter in the course. There's also an Assets subfolder that contains a variety of image files under Launcher Icon and Photos, and a Solutions folder that contains finished versions of each exercise.
Within each chapter folder, you'll find a collection of exercise folders, and within each exercise folder, you'll find a folder that's organized as an Android Studio project. You can open each of these folders directly in Android Studio. To open any of these folders, go to the Android Studio welcome screen and choose Open an existing Android Studio project. Then navigate to your exercise files folder. If you've copied it to the desktop, you can press Control D on Windows or Command D on Mac to jump directly to the desktop.
Then you can go into the exercise files, and open the chapter and exercise you're interested in, then select the folder that contains the Android Studio project, and open it. When you first open each project in Android Studio, it might take a few moments for it to build. Be patient and wait for all of the messages at the bottom of the screen to go away. Once you see the message, Gradle build finished, and the amount of time, you should then be able to open any of the files, start programming, and be able to run and test your applications.
As I mentioned, the beginning exercises for each chapter and exercise are directly under Exercise Files, but you'll find the finished versions of each exercise here under Solutions. And just like the original files, these are Android Studio project folders. So that's a look at how to use the exercise files for this course. You will need to make sure you set up Android Studio and the Android SDK with the correct elements to be able to open and use these projects, but I'll describe how to do that early in the course.
- Setting the SDK and devices for app development and testing
- Sending notifications to Android Wear devices
- Adding action buttons and voice input to notifications
- Stacking notifications
- Creating a new wearable app
- Managing layouts for different watch shapes
- Sending messages between phones and Android Wear devices
- Packaging an Android Wear app for distribution