Muutke küpsiste eelistusi

E-raamat: Beginning Android Wearables: With Android Wear and Google Glass SDKs

  • Formaat: PDF+DRM
  • Ilmumisaeg: 06-Apr-2015
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484205174
  • Formaat - PDF+DRM
  • Hind: 32,10 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: PDF+DRM
  • Ilmumisaeg: 06-Apr-2015
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484205174

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Beginning Android Wearables gives you the skills you need to make effective apps for Android Wear-based smartwatches, fitness bracelets, connected home wearable controllers, and Google Glass. Delight your users by giving them access to the information they'll need at the tips of their fingers.

This book is very practical and contains many examples that not only show you how to write code for Glass and Android Wear, but also demonstrate how to apply this code in the context of an app.

About the Author xix
About the Technical Reviewer xxi
Acknowledgments xxiii
Part I Introduction
1(16)
Chapter 1 Introducing Android Wearables
3(14)
Wearables and Contextual Awareness
3(1)
Wearables and User Experience
4(1)
Why Android Wearables?
5(1)
What Can Android Wear Do?
5(1)
The Context Stream
6(1)
The Cue Card
7(1)
The Android Wear App
8(1)
What Can Glass Do?
9(1)
Understanding Glass Lingo
10(3)
Google Glass vs. Glass
10(1)
Glassware
10(1)
Glass Explorers
10(1)
Cards & Timeline
11(1)
Voice Commands
12(1)
The MyGlass App
12(1)
The End of the Glass Explorers Program
13(1)
Should I Develop for Glass or Android Wear?
13(1)
Design Matters
14(1)
Reading This Book
14(1)
Summary
15(2)
Part II Notifications
17(76)
Chapter 2 Reviewing Notifications for Android
19(36)
The Example App
19(3)
Standard Notifications
22(4)
Always Use a Content Intent
23(1)
Pendingintents
23(1)
A Single Top Activity
24(1)
Implementation
24(2)
Updating Notifications
26(1)
Implementation
26(1)
Notification Priority
27(1)
Notification Alerts
27(2)
Notifications in Android 5.0
29(7)
Dark Content on a Light Background
29(1)
The Interruption Filter
29(1)
Notification Category
30(1)
Lock Screen Notifications
30(4)
Heads-up Notifications
34(2)
Changing a Notification's Color
36(1)
Compatibility
36(1)
Rich Notifications
36(6)
BigTextStyle Notification
37(1)
BigPictureStyle Notification
38(2)
InboxStyle Notification
40(2)
Notification Actions
42(3)
Implementation
43(2)
Custom Notifications
45(4)
Implementation
46(3)
MediaStyle Notification
49(5)
Implementing MediaStyleService
49(4)
Handle the Play and Pause Actions
53(1)
Implementing MainActivity
54(1)
Summary
54(1)
Chapter 3 Customizing Notifications for Wearables
55(38)
Getting Started
55(1)
The Example App
56(2)
Handheld Notifications on Wearables
58(8)
Standard Notifications
58(1)
BigTextStyle Notifications
59(2)
BigPictureStyle Notifications
61(2)
InboxStyle Notifications
63(1)
Notification Actions
64(2)
Customizing Notifications for Wearables
66(26)
Wielding TaskStackBuilder
66(5)
Wearable-Only Actions
71(4)
Notification Pages
75(4)
Stacking Notifications
79(4)
Voice Input Notification
83(4)
Background Only Notifications
87(3)
Content Action
90(2)
Summary
92(1)
Part III Android Wear
93(180)
Chapter 4 Running Apps Directly on Android Wear
95(34)
The Android SDK in Android Wear
95(1)
Creating a New Project
96(2)
Starting Wear Apps
98(2)
App-Provided Voice Actions
99(1)
System-Provided Voice Actions
99(1)
The Example App
100(1)
Example #1 Our First Wearable App
100(2)
The Wearable UI Library
102(1)
Our First Wearable UI View: WearableListView
102(12)
WearableListView and RecyclerView
103(1)
The ViewHolder Pattern
103(1)
Example #2 Implementing a List of Strings
103(4)
Example #3 Implementing an Animated WearableListView
107(6)
Implementing AnimatedListViewActivity
113(1)
Example #4 Creating a Timer App
114(14)
Overview of the Architecture
115(2)
Implementing TimerUtil
117(4)
Implementing CommandReceiver
121(3)
Implementing TimerCompletedActivity
124(2)
Implementing TimerActivity
126(2)
Summary
128(1)
Chapter 5 Android Wear User Interface Essentials
129(44)
Using CardFragment
130(2)
The Card Gravity Property
130(1)
The Card Expansion Property
131(1)
The Expansion Direction Property
131(1)
The Expansion Factor Property
132(1)
Using GridViewPager
132(3)
Example App #1 Vocab Builder
135(7)
Representing Vocabulary Words
135(1)
Representing a Vocabulary Word List
136(2)
Implementing VocabularyAdapter
138(2)
Fixed Movement Paging
140(1)
Creating and Populating GridViewPager
141(1)
Using CircledImageView
142(1)
Using DelayedConfirmationView
143(5)
Using WatchViewStub
146(1)
Window Overscan
146(1)
Using ConfirmationActivity
147(1)
Example App #2 Confirmation Demo
148(11)
Implementing Action Buttons
149(2)
Creating a Fragment with an Action Button
151(3)
Implementing DelayedConfirmationActivity
154(2)
Implementing ConfirmationDemoActivity
156(3)
Using BoxInsetLayout
159(1)
Example App #3 Running Stats
160(4)
Simulating Running Stats
160(4)
Implementing RunStatsActivity
164(3)
Example App #4 Creating a Custom Notification
167(4)
Creating a Custom Notification
168(2)
Stopping the Custom Notification
170(1)
Starting the Custom Notification
171(1)
Summary
171(2)
Chapter 6 The Wearable Data Layer API
173(42)
The Wearable Data Layer
173(1)
Connecting to GoogleApiClient
174(7)
Example #1 Establishing an Asynchronous Connection
174(5)
A Minimal Asynchronous Connection
179(1)
Establishing a Synchronous Connection
180(1)
PendingResults
181(1)
Example #2 Using the Node API
182(6)
Messages and Data
188(1)
Example #3 Building a Shared Counter
188(13)
Implementing the Handheld Activity
190(3)
Implementing the Wearable Activity
193(3)
Sending Messages with the Message API
196(1)
Receiving Messages with the Message API
197(1)
Request Response Paradigm
198(3)
The Data API
201(6)
Implementing the Decrement and Increment Buttons
205(2)
Example #4 Sending and Receiving Assets
207(6)
Sending Assets with the Data API
207(4)
Retrieving Assets with the Data API
211(2)
Summary
213(2)
Chapter 7 Creating Custom Watch Faces
215(58)
The Anatomy of a Watch Face
216(6)
Interactive and Ambient modes
216(2)
Low-bit Ambient Mods and Burn-in Protection
218(2)
Square and Round Screens
220(1)
The Moto 360 and the Bottom Inset
220(1)
Interruption Filter
221(1)
System Indicators
221(1)
Configuring the Watch Face Style
222(1)
Status Bar Gravity
223(7)
Card Peek Mode
224(1)
Ambient Card Peek Mode
225(1)
Peek Opacity Mode
226(1)
Background Visibility
227(1)
Hotword Indicator Gravity
227(1)
View Protection
228(1)
Show System UI Time
229(1)
Building a Basic Watch Face
230(1)
Creating and Declaring a Watch Face
230(15)
Implementing the Engine Class
233(6)
Scaling the Watch Face to the Current Size
239(1)
Drawing the Watch Face
240(5)
Building a Watch Face from Bitmaps
245(27)
Encapsulating Bitmaps with WatchFaceBitmapHolder
249(3)
Data Layer Architecture
252(1)
Implementing ConvergenceUtil
253(3)
Implementing ConvergenceWearableConfigActivity
256(3)
Implementing ConvergenceConfigActivity
259(3)
Implementing ConvergenceWearableListenerService
262(2)
Implementing ConvergenceWatchFaceService
264(8)
Summary
272(1)
Part IV Google Glass
273(144)
Chapter 8 Running Apps Directly on Glass
275(20)
The GDK and the Mirror API
275(2)
Should I use the Mirror API or the GDK?
276(1)
Immersions and Ongoing Tasks
277(5)
Immersions
277(1)
Ongoing Tasks
278(1)
Combined Immersion and Ongoing Task
279(1)
Getting Started
280(2)
Voice commands
282(1)
Implementing an Immersion
282(3)
Using CardScrollView
285(1)
Playing System Sounds
285(1)
Implementing Scrolling Cards
286(4)
Providing Feedback
290(3)
Summary
293(2)
Chapter 9 Glass User Interface Essentials
295(54)
Building Cards Styled for Glass
295(20)
Declaring a Voice Command
296(1)
Extending CardScrollAdapter
296(2)
Creating the List of Scrolling Cards
298(2)
The TEXT Layout
300(3)
The TEXT_FIXED Layout
303(1)
The COLUMNS Layout
304(2)
The COLUMNS_FIXED Layout
306(1)
The CAPTION Layout
307(1)
The TITLE layout
308(1)
The AUTHOR Layout
308(1)
The MENU Layout
309(1)
The ALERT Layout
310(5)
The Ongoing Task Pattern
315(15)
LiveCards Require Menus
315(1)
Publishing LiveCards
315(1)
Updating LiveCards
315(1)
Low-Frequency Rendering
316(5)
High-Frequency Rendering
321(9)
Implementing a Digital Speedometer
330(11)
Implementing DigitalSpeedView
331(1)
Implementing DigitalSpeedMenuActivity
332(3)
Implementing DigitalSpeedService
335(2)
Implementing DigitalSpeedRenderer
337(2)
Implementing RenderThread
339(2)
Displaying Progress and Status with Slider
341(7)
Summary
348(1)
Chapter 10 Gesture and Voice Recognition
349(32)
Gestures on the Touchpad
349(17)
Viewing Generic Motion Events
350(4)
Using GestureDetector
354(1)
Detecting Gestures and Counting Fingers
355(3)
Detecting Scrolling on the Touchpad
358(6)
Implementing Inertial Scroll
364(2)
Head Gestures
366(8)
Detecting Head Nods
368(1)
Implementing HeadGestureDetector
369(2)
Implementing HeadGestureActivity
371(3)
Voice Recognition
374(5)
Voice Command Prompts
375(1)
Standalone Voice Recognition
376(1)
Contextual Voice Commands
377(2)
Summary
379(2)
Chapter 11 The Camera: Taking Pictures and Recording Video
381(36)
Taking Pictures and Recording Videos with Intents
382(1)
Taking Pictures
382(1)
Recording Videos
383(1)
Example #1 Capturing Media with Intents
383(8)
Define a Voice Command
384(7)
Example #2 Using the Camera API
391(11)
Implementing CameraUtils
392(2)
Implementing the SurfaceHolder Callback
394(2)
Implementing CameraActivity
396(1)
Initialize the Layout and SoundPool
397(5)
Example #3 Using the Camera API from a LiveCard
402(5)
Create LiveCameraPreview
402(2)
Creating a Menu for the LiveCard
404(2)
Implement CameraLiveCardService
406(1)
Example #4 Recording a Time-lapse Video
407(8)
Implementing TimelapseActivity
408(2)
Creating an Options Menu
410(2)
Recording a Time-lapse
412(3)
Summary
415(2)
Part V Android Wear and Glass
417(60)
Chapter 12 Location and Orientation
419(58)
Modeling the Earth as an Ellipsoid
419(1)
Geodetic Latitude and Longitude
420(3)
Defining Altitude
423(1)
Location Providers
423(1)
Obtaining Location Updates on Android Wear
424(8)
Register for Node and Location Updates
427(2)
Using FusedLocationProvider
429(1)
Requesting and Removing Location Updates
430(2)
Obtaining Location Updates on Glass
432(5)
Request and Remove Location Updates
435(2)
Representing Orientation
437(6)
Coordinate Frames
438(2)
Azimuth, Pitch, and Roll
440(2)
Rotation Matrices and Quaternions
442(1)
Measuring Orientation
443(1)
The Rotation Vector Sensor
444(1)
Rotation Vector in Android Wear
444(1)
Rotation Vector in Glass
445(1)
Implementing Rotation Vector in Android Wear
445(5)
Using Rotation Vector on Glass
450(5)
Building a Compass
455(1)
True North vs. Magnetic North
456(1)
Magnetic Interference
456(1)
Building a Compass in Android Wear
456(3)
Create a View That Draws a Compass
457(2)
Implementing CompassActivity
459(6)
Update the Azimuth and Display Warnings
462(2)
Obtaining the Declination
464(1)
Building a Compass in Glass
465(7)
Implementing CompassView
466(5)
Obtain the Declination
471(1)
Using Step Counter in Android Wear
472(3)
Summary
475(2)
Index 477
Andres Calvo is a software engineer who has worked with wearable and mobile devices for over five years. He works for Ball Aerospace as a contractor at Air Force Research Laboratory, where he acquired an interest (read: obsession) with usability and user experience. Andres is fascinated by the potential that wearables including Glass and Android Wear have to provide unprecedented user experiences. During his free time, Andres develops applications for Android, Glass, and Android Wear both for fun and as a freelancer. He has received bachelor degrees in computer science and computer engineering from the University of Dayton. Visit his blog at http://ocddevelopers.com and contact him at andresacalvo@gmail.com