Debugging over Bluetooth | Android Developers (2024)

Previous Next Get started

This lesson teaches you to

  1. Set Up Devices for Debugging
  2. Set Up a Debugging Session
  3. Debug Your App

You should also read

You can debug your wearable over Bluetooth by routing its debug output to thehandheld device that's connected to your development machine.

Setup Devices for Debugging

  1. Enable USB debugging on the handheld:
    • Open the Settings app and scroll to the bottom.
    • If it doesn't have a Developer Options setting, tap About Phone (or About Tablet), scroll to the bottom, and tap the build number 7 times.
    • Go back and tap Developer Options.
    • Enable USB debugging.
  2. Enable Bluetooth debugging on the wearable:
    1. Tap the home screen twice to bring up the Wear menu.
    2. Scroll to the bottom and tap Settings.
    3. Scroll to the bottom. If there's no Developer Options item, tap About, and then tap the build number 7 times.
    4. Tap the Developer Options item.
    5. Enable Debug over Bluetooth.

Set Up a Debugging Session

  1. On the handheld, open the Android Wear companion app.
  2. Tap the menu on the top right and select Settings.
  3. Enable Debugging over Bluetooth. You should see a tiny status summary appear under the option:
    Host: disconnectedTarget: connected
  4. Connect the handheld to your machine over USB and run:
    adb forward tcp:4444 localabstract:/adb-hubadb connect localhost:4444

    Note: You can use any available port that you have access to.

In the Android Wear companion app, you should see the status change to:

Host: connectedTarget: connected

Debug Your App

Your wearable should show up as localhost:4444 when running adb devices.To run any adb command, use this format:

adb -s localhost:4444 <command> 

If there are no other devices connected over TCP/IP (namely emulators), you can shorten the commandto:

adb -e <command>

For example:

adb -e logcatadb -e shelladb -e bugreport

Next Get started Next class

Debugging over Bluetooth | Android Developers (2024)
Top Articles
ASC LLC - Company Profile and News
World's Most Eaten Food Discovered: What is our favourite? | AGC Equipment
Christian McCaffrey loses fumble to open Super Bowl LVIII
Fat People Falling Gif
Pnct Terminal Camera
Unity Stuck Reload Script Assemblies
³µ¿Â«»ÍÀÇ Ã¢½ÃÀÚ À̸¸±¸ ¸íÀÎ, ¹Ì±¹ Ķ¸®Æ÷´Ï¾Æ ÁøÃâ - ¿ù°£ÆÄ¿öÄÚ¸®¾Æ
St Als Elm Clinic
Legacy First National Bank
Edgar And Herschel Trivia Questions
Ktbs Payroll Login
سریال رویای شیرین جوانی قسمت 338
Second Chance Maryland Lottery
Who called you from +19192464227 (9192464227): 5 reviews
Candy Land Santa Ana
White Pages Corpus Christi
Hennens Chattanooga Dress Code
Walgreens Alma School And Dynamite
Puss In Boots: The Last Wish Showtimes Near Cinépolis Vista
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Used Safari Condo Alto R1723 For Sale
Greenville Sc Greyhound
T Mobile Rival Crossword Clue
Troy Gamefarm Prices
UAE 2023 F&B Data Insights: Restaurant Population and Traffic Data
Osrs Important Letter
Renfield Showtimes Near Marquee Cinemas - Wakefield 12
Metro By T Mobile Sign In
#scandalous stars | astrognossienne
Cheap Motorcycles Craigslist
2012 Street Glide Blue Book Value
Iban's staff
Buhsd Studentvue
Banana Republic Rewards Login
Plead Irksomely Crossword
Spectrum Outage in Genoa City, Wisconsin
Captain Billy's Whiz Bang, Vol 1, No. 11, August, 1920&#10;America's Magazine of Wit, Humor and Filosophy
Directions To Advance Auto
Tyler Perry Marriage Counselor Play 123Movies
F9 2385
Walmart Pharmacy Hours: What Time Does The Pharmacy Open and Close?
All-New Webkinz FAQ | WKN: Webkinz Newz
Walmart Car Service Near Me
Busted Newspaper Mcpherson Kansas
Craigslist Central Il
Unit 11 Homework 3 Area Of Composite Figures
Dayton Overdrive
UNC Charlotte Admission Requirements
Page 5747 – Christianity Today
Random Warzone 2 Loadout Generator
Assignation en paiement ou injonction de payer ?
Craigslist Pets Lewiston Idaho
Latest Posts
Article information

Author: Merrill Bechtelar CPA

Last Updated:

Views: 6032

Rating: 5 / 5 (50 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Merrill Bechtelar CPA

Birthday: 1996-05-19

Address: Apt. 114 873 White Lodge, Libbyfurt, CA 93006

Phone: +5983010455207

Job: Legacy Representative

Hobby: Blacksmithing, Urban exploration, Sudoku, Slacklining, Creative writing, Community, Letterboxing

Introduction: My name is Merrill Bechtelar CPA, I am a clean, agreeable, glorious, magnificent, witty, enchanting, comfortable person who loves writing and wants to share my knowledge and understanding with you.