更新时间:2021-07-15 17:18:27
cover
Title Page
Copyright
Android Wear Projects
Credits
About the Author
About the Reviewers
www.PacktPub.com
Why subscribe?
Customer Feedback
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
Errata
Piracy
Questions
Getting You Ready to Fly - Setting Up Your Development Environment
Android Wear design principles
Defining layouts
Creating lists
Exploring UI components for Wear devices
Showing confirmations
DelayedConfirmationView
Wear navigation and actions
Navigation drawer
Action drawer
Multifunction buttons
Setting up a development environment for Wear development
Installing Android Studio
Creating your first Android Wear application
Creating your first Wear project
Creating a Wear emulator
Working with actual Wear device
Debugging over Wi-Fi
Enable Bluetooth debugging
Summary
Let us Help Capture What is on Your Mind - WearRecyclerView and More
Getting started
Let's get started by creating a project
Lifecycle of an Android activity
Creating the packages
Creating the SharedPreference utility
Saving notes
Fetching all the saved notes from SharedPreference
Removing notes from SharedPreference
Building the User Interface
Creating an adapter for WearableRecyclerView
Adapter implementation
Working on activities and driving the project towards completion
Writing a method to create a note when clicking on Add a Note
Adding a method for updating the adapter
Adding the updateData method
Updating the data on the UI when the application restarts
Overriding onActivityResult for getting the delete reference
Let's see DeleteActivity in detail
Note application in a round form factor device
Note application in a square form factor device
Let us Help Capture What is on Your Mind - Saving Data and Customizing the UI
Wear-note-2
Advantages of Realm
Disadvantages of Realm
Re-structuring the code and dependencies
Working on the Wear User Interface
Let's get started working on the Wear-note-2 user interface
Better fonts for better reading
Writing custom layouts for better UX
Measure Your Wellness - Sensors
Conceptualizing the application
Enlisting the available sensors in Wear
Accuracy of sensors
Battery consumption
Doze mode
Creating a project
Adding a drawer menu
Creating a navigation drawer adapter
Creating fragments
Measuring Your Wellness and Syncing Collected Sensor Data
Collecting Wear sensors' data
Completed WearStepService class
Switching back to the Wear module
Recyclerview Adapter
Completed HistoryActivity Class
Ways to Get Around Anywhere - WearMap and the GoogleAPIclient
Let's get started with creating WearMap
The Google API console
The Google API client
Configuring the project for functionalities
Getting users' location information with the help of GoogleApiClient
GeoSpatial data using GeoCoder
Infowindow adapter