Scroll Essential Android 2.3 Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Tablety Scroll Essential Android 2.3. Android Wear Docs Release 1.1 Michael Hahn Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk

Shrnutí obsahu

Strany 1 - Android Wear Docs

Android Wear DocsRelease 1.1Michael HahnApril 30, 2015

Strany 2

Android Wear Docs, Release 1.1When the Android Wear companion app successfully pairs with the emulator, the action bar displaysEmulator Connected.On t

Strany 3

CHAPTER 2What About the Sample Apps?By Michael Hahn, December 2014Google provides a variety of sample applications for wearables that demonstrate the

Strany 4 - 10 Indices and tables 43

Android Wear Docs, Release 1.14. When prompted to choose a device, select your handheld device and click OK.5. Wait for the Application to fully compi

Strany 5

Android Wear Docs, Release 1.12.4 Try Eliza ChatThe Eliza Chat sample app shows how you might implement a Personal Digital Assistant on a wearable dev

Strany 6 - 2 Contents

Android Wear Docs, Release 1.110 Chapter 2. What About the Sample Apps?

Strany 7 - How Does Android Wear Work?

Android Wear Docs, Release 1.1Swipe left to move through the steps. For each step you can tap to view more and swipe up or down to move throughthe con

Strany 8 - 1.3 Set Up Your Wearable

Android Wear Docs, Release 1.112 Chapter 2. What About the Sample Apps?

Strany 9

CHAPTER 3Android Wear SuggestBy Michael Hahn, January 2015The Suggest context stream is one of the core functions for Android Wear. It consists of a s

Strany 10 - 1.4 Next Steps

Android Wear Docs, Release 1.1Android Wear adds even more styles that improve the user experience on the small screen of a wearable device. Thesestyle

Strany 11 - What About the Sample Apps?

Android Wear Docs, Release 1.13.1.2 Modify the Handheld Activity1. Import the the packages that support wearable features into the handheld Activity.

Strany 13 - 2.5 Try Recipe Assistant

Android Wear Docs, Release 1.13.2 ExampleThe full Android Studio project for this example is posted at https://github.com/LarkspurCA/WearableSuggest.1

Strany 14

CHAPTER 4Android Wear DemandBy Michael Hahn, January 2015The Demand context is one of the core functions for Android Wear. A demand is displayed as a

Strany 15 - 2.6 Try Wearable Notifications

Android Wear Docs, Release 1.14.1.2 Modify the Handheld ActivityYour handheld activity initiates the process by creating a notification that includes a

Strany 16

Android Wear Docs, Release 1.1NotificationCompat.WearableExtender wearableExtender =new NotificationCompat.WearableExtender().addAction(replyAction);6

Strany 17 - Android Wear Suggest

Android Wear Docs, Release 1.1Selecting the reply icon displays the voice prompt, and then the confirmation after you speak (or type on the emulator).T

Strany 18 - 3.1.1 Create a Project

CHAPTER 5Wearable Application LaunchBy Michael Hahn, April 2015Android wearable devices have an Android operating system, so you can develop applicati

Strany 19

Android Wear Docs, Release 1.15.3 Handheld ActivationA great way to start your wearable app is from a notification on the wearable. This is useful when

Strany 20 - 3.2 Example

Android Wear Docs, Release 1.1for (DataEvent event : dataEvents) {// Check the event typeif (event.getType() == DataEvent.TYPE_CHANGED) {// Check the

Strany 21 - 4.1 First Android Wear Demand

Android Wear Docs, Release 1.124 Chapter 5. Wearable Application Launch

Strany 22

CHAPTER 6Data Layer MessagesBy Michael Hahn, January 2015An application that runs on a wearable device usually utilizes some of the capabilities of a

Strany 23

Contents1 How Does Android Wear Work? 31.1 Set Up the Development Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31.2

Strany 24 - 4.2 Example

Android Wear Docs, Release 1.1name, which is essential for the wearable data layer to work.Data layer messages can originate from either a handheld or

Strany 25 - 5.2 Menu Activation

Android Wear Docs, Release 1.1}// Data layer and lifecycle implementation (Step 2)...}2. Add callback methods for the data layer and lifecycle events.

Strany 26 - 5.3 Handheld Activation

Android Wear Docs, Release 1.1else {// Log an errorLog.v("myTag", "ERROR: failed to send Message");}}}}6.1.2 Implement a Message L

Strany 27

Android Wear Docs, Release 1.1}else {super.onMessageReceived(messageEvent);}}}6.1.3 Display Received MessagesThe wearable listener service cannot dire

Strany 28

Android Wear Docs, Release 1.1which results in duplicate local broadcasts.6.1.4 Try the First Data Layer AppMake sure the handheld and wearable are su

Strany 29 - 6.1 First Wearable Message

CHAPTER 7Data Layer DataMap ObjectsBy Michael Hahn, January 2015The wearable data layer can sync either messages or data. A message contains a single

Strany 30

Android Wear Docs, Release 1.1the buffer, convert it to a DataMapItem, convert that to a DataMap object, and then get the original handheld data.A Wea

Strany 31

Android Wear Docs, Release 1.1object that contains a golf course hole number and the distances to the front, middle, and back pin locations.The receiv

Strany 32

Android Wear Docs, Release 1.1NodeApi.GetConnectedNodesResult nodes = Wearable.NodeApi.getConnectedNodes(googleClient).await();for (Node node : nodes.

Strany 33

Android Wear Docs, Release 1.1}}}}7.1.4 Using Received DataIn this example, a background service receives the data. If you need this data in the UI or

Strany 34 - 6.2 Example

8.4 Golf Rangefinder Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409 Contact Us 4110 Indices and tables 43i

Strany 35 - Data Layer DataMap Objects

Android Wear Docs, Release 1.136 Chapter 7. Data Layer DataMap Objects

Strany 36 - 7.1 First Wearable Data

CHAPTER 8Wearable GPSBy Michael Hahn, March 2015Wearables are great when you are on the go, especially when you are out for a run or looking for desti

Strany 37

Android Wear Docs, Release 1.1dependencies {compile ’com.google.android.support:wearable:1.1.0’compile ’com.google.android.gms:play-services-wearable:

Strany 38 - 7.1.3 Add a Data Receiver

Android Wear Docs, Release 1.1// Register listener using the LocationRequest objectLocationServices.FusedLocationApi.requestLocationUpdates(googleClie

Strany 39 - 7.2 Example

Android Wear Docs, Release 1.18.2 Verify GPS SensorThis simple example works for all wearables, with or without a GPS sensor. Those without GPS must p

Strany 40

CHAPTER 9Contact UsAndroid Wear Docs415 [email protected]@DroidWearDocs41

Strany 41 - 8.1 First Wearable GPS

Android Wear Docs, Release 1.142 Chapter 9. Contact Us

Strany 42 - 8.1.2 Add a Location Listener

CHAPTER 10Indices and tables• genindex• search43

Strany 43

Android Wear Docs, Release 1.1By Michael Hahn, May 2015What is Android Wear?Android Wear is the Google API for smart watches, Google Glass, and other

Strany 44 - 8.4 Golf Rangefinder Example

Android Wear Docs, Release 1.12 Contents

Strany 45 - Contact Us

CHAPTER 1How Does Android Wear Work?By Michael Hahn, December 2014The easiest way to learn how Android Wear works is to install the Android Wear compa

Strany 46 - 42 Chapter 9. Contact Us

Android Wear Docs, Release 1.1Accept any warning or security messages displayed on either the handheld device or computer.5. Verify that the handheld

Strany 47 - Indices and tables

Android Wear Docs, Release 1.1Note: The adb executable is located in the Tools directory of your Android SDK. Add it to your path ifnecessary.2. Click

Komentáře k této Příručce

Žádné komentáře