Scroll Essential Android 2.3 Instrukcja Użytkownika Strona 10

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 47
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 9
Android Wear Docs, Release 1.1
When the Android Wear companion app successfully pairs with the emulator, the action bar displays
Emulator Connected.
On the emulator, the cloud icon disappears, and notifications are displayed as they are received.
1.3.2 Wearable Device Setup
1. Pair a wearable device with your handheld using the Android Wear companion app.
When you first pear with your wearable, the Android Wear companion app provides a short tutorial that intro-
duces the Wearable UI and basic functionality. From the main UI where you can then change the watchface,
enable voice actions, and browse suggested apps.
2. Enable bluetooth debugging on the wearable.
Your wearable device disables USB debugging by default, and the option to enable it can be hidden as well. You
must open Settings, select About, and then click Build Number seven times. The Settings menu then includes
Developer options, where you can enable debugging over bluetooth.
Start a Device Debug Session
1. On the handheld, open the Android Wear companion app.
2. Tap the Settings icon. The Settings dialog is displayed.
3. Enable Debugging over Bluetooth. The following is displayed initially:
Host: disconnected
Target: connected
4. Enter the following command on your computer.
adb forward tcp:4444 localabstract:/adb-hub
adb connect localhost:4444
5. The companion app changes to the following:
Host: connected
Target: connected
1.4 Next Steps
You are now up and running with Android Wear, and ready to move on to your first wearable app. Initially, you write
an app that can display notifications and receive user inputs from a wearable device, but runs code on the handheld
device only. Later you can develop more powerful software that runs Android code on the wearable device as well.
6 Chapter 1. How Does Android Wear Work?
Przeglądanie stron 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 46 47

Komentarze do niniejszej Instrukcji

Brak uwag