Android Wear
Developer Preview
林致宇
2014/03/24
http://developer.android.com/wear/index.html
Android Wear
Outline
•  Preparation
•  Programming
•  Demo
Outline
•  Preparation
•  Programming
•  Demo
Preparation
•  Android Development Environment
– ADT Bundle (Eclipse)
– Android Studio
1.  Sign Up for the Developer Preview
2.  Install the Android Wear System Image
3.  Android Wear Emulator
4.  Android Wear Preview App
(1) Sign Up for the Developer Preview
(2) Install the Android Wear System Image 
1.  Lunch Android SDK Manager
2.  Android SDK Tools ( ≥ 22.6)
3.  Android 4.4.2 è Android Wear ARM
EABI v7a System Image
4.  Extras/Android Support Library
5.  Install
Troubleshooting
•  ADT Update Problem
– Help è Install new software
– ADT update site
•  http://dl-ssl.google.com/android/eclipse/
– Developer tools
(3) Set Up the Android Wear Emulator
(3) Set Up the Android Wear Emulator
(4) Set Up the Android Wear Preview App
(4) Set Up the Android Wear Preview App 
You need an Android 4.3 (above) device.
You cannot use Emulator.
(4) Set Up the Android Wear Preview App
(4) Set Up the Android Wear Preview App 
•  /sdk/platform-tools/
– adb –d forward tcp:5601
tcp:5601
Outline
•  Preparation
•  Programming
•  Demo
Notification
Gmail
Line
AndroidWear001
AndroidWear002
Browser
Programming
•  Add Libraries to Your Project
•  Creating Notifications for Android Wear
•  Receiving Voice Input from a
Notification
•  Adding Pages to a Notification
•  Stacking Notifications
Add Libraries to Your Project
•  /libs
– android-support-v4.jar
– wearable-preview-support.jar
Programming
•  Add Libraries to Your Project
•  Creating Notifications for Android Wear
•  Receiving Voice Input from a
Notification
•  Adding Pages to a Notification
•  Stacking Notifications
Creating Notifications for Android
Wear
Creating Notifications for Android
Wear
Programming
•  Add Libraries to Your Project
•  Creating Notifications for Android Wear
•  Receiving Voice Input from a
Notification
•  Adding Pages to a Notification
•  Stacking Notifications
Receiving Voice Input from a
Notification
Receiving Voice Input from a
Notification

Android Wear 試玩