Simultaneous operation of mobile phones and watch devices using Bluetooth debugging in Android Wear development

Source: Internet
Author: User

During the development of the Android Wear application, both the watch and the phone need to be operated simultaneously, and the phone and watch can be operated simultaneously via Bluetooth.

1 turn on the watch and phone's debug settings

Turn on USB debugging for your phone

Open the developer option for the Watch settings, check debug over Bluetooth if it is the first time to use the watch debug, need to find about in setting, click 7 times Open Developer options

2 connecting watches to Development tools

Open the Android Wear App on the phone, go to setting, check debugging over Bluetooth, and you will find that the current status is

<span style= "White-space:pre" ></span>host:disconnected<span style= "White-space:pre" ></span >target:connected
Open cmd and type the following command in turn

  <span style= "White-space:pre" ></span>  adb forward tcp:4444 Localabstract:/adb-hub
  <span style= "White-space:pre" ></span>  ADB connect localhost:4444
See Status

<span style= "White-space:pre" ></span>host:connected<span style= "White-space:pre" ></span> target:connected
is a success.

Simultaneous operation of mobile phones and watch devices using Bluetooth debugging in Android Wear development

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.