售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Mastering Android Wear Application Development
Mastering Android Wear Application Development
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Introduction to Wearable Computing
Evolution
Moore's law
Ubiquitous computing
Mobile meets wearables
Hello Android Wear
Summary
2. Setting up the Development Environment
Android Studio
Installation
Git and GitHub
Gradle
Android SDK packages
Android Virtual Devices
Let's build a skeleton application
Summary
3. Developing Android Wear Applications
Skeleton app
The Android manifest file
Gradle build files
App activities
Let's build an Android Wear app
Summary
4. Developing Watch UI
Wearable UI
The Android manifest file
The TodayActivity activity
Actions inside the arrays.xml file
Main activity layout file
The WearableListItemLayout component
The DayOfYearActivity class
The activity_day_of_year.xml file
Summary
5. Synchronizing Data
What is a companion app anyway?
Setting up an Android Wear virtual device
Revisiting the Today app
Scope of the new Today app
The Wearable data layer API
MessageApi
WearableListenerService
DataListener
Cloud Node
The GoogleApiClient class
The Volley library
The JSoup library
The Build Script
Companion app's Android manifest file
The TodayMobileActivity class
Wearable app's Android manifest file
The OnThisDayActivity class
The HandheldListenerService class
Messages not coming through to your Wear app?
Summary
6. Contextual Notifications
Getting notified
Core classes of the notifications API
NotificationCompat.Builder
Action buttons in your notification
Wearable-only actions
Delivery
Today app with to-do notifications
Geofencing
Mocking a GPS
The build.gradle file on wear and mobile apps
Handheld app's Android manifest file
The TodoMobileActivity class
To-do list view
Adding to-do items
Mock locations
Mocking locations using FakeGPS app
The GeofenceTransitionIntentService class
Handheld app notification
Wearable app notifications
Summary
7. Voice Interactions, Sensors, and Tracking
Voice capabilities
System-provided voice actions
App-provided voice actions
New feature - adding to-do items through voice commands
Add to-do Item - a new action in the wearable app
The AddTodoItem activity in the wearable app
Handling speech inputs
Handheld app
Motion sensors
Gyroscope
Accelerometer
New feature - tracking our steps
Add to-do item - a new action in the wearable app
Summary
8. Creating Custom UI
Android Wear UI design
Common UI patterns
Cards
Countdowns and confirmations
Card stacks
2D Pickers
Selection lists
Revisiting the OnThisDay activity
The OnThisDayActivity activity
The activity layout
Summary
9. Material Design
Approaching material design
Interacting with the world
A visual language
To-do item menus
About the navigation drawer
The TodosActivity class
The TodoItemTypeFragment class
The NavigationAdapter class
Navigation item
The WearableDrawerLayout class
Menu items
Menu listener
Switching to-do types
Summary
10. Watch Faces
Telling the time
What is a watch face?
Design considerations
Implementation considerations
The watch face service
Interactive watch faces
Performance considerations
Let's build a watch face
The Android manifest file
The TodayWatchFace service
The TodayWatchFaceService class
The onTimeTick method
Drawing the watch face
Ambient mode
Customizing the watch face
The WatchFaceConfigActivity class
Summary
11. Advanced Features and Concepts
Keeping the watch running
Making an app to stay always on
An always running step counter
The Android manifest file
The StepCounterActivity class
Debugging wearable apps
Device setup
USB debugging on the handheld app
Bluetooth debugging on the wearable app
Session setup on the handhelds apps
The way forward - reviewing Android Wear 2.0
Watch face complications
Navigation and action drawers
Expanded and messaging style notifications
The Input Method Framework
Remote input and smart reply
Wrist gestures
Bridging mode
Standalone wearables
Summary
12. Publishing Apps to Google Play
Testing
The need for testing
Types of unit test
Automating user interface tests
Test APIs
JUnit
The AndroidJUnitRunner class
Espresso
View and Adapter matching
Action APIs
UI Automator
Monkey and monkeyrunner
The human touch
App distribution
Packaging
Publishing and opt-in
Summary
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜