Testing your apps on actual gadgets helps you to consider the whole person expertise, which is necessary if the app requires particular {hardware}, corresponding to sensors or a GPU.
For wearable apps, you’ll be able to run your apps from Android Studio and check instantly on a bodily watch, such because the Galaxy Watch4 or later.
This weblog describes arrange Android Studio and your Galaxy Watch, working on Put on OS powered by Samsung, for testing and debugging apps wirelessly over an Android Debug Bridge (ADB) connection.
To attach your watch to Android Studio over Wi-Fi:
-
Open the Settings menu in your Galaxy Watch.
-
In Connections > Wi-Fi, join the watch to the identical Wi-Fi community as your laptop.
-
Subsequent, go to Settings > About watch > Software program Info.
-
Faucet on Software program model 5 instances to allow Developer Mode.
-
As soon as the Developer Mode is turned on, open the newly added Developer choices menu in Settings.
-
Allow the next within the Developer choices display:
- ADB debugging
- Flip off automated Wi-Fi
- Wi-fi debugging
-
Within the Wi-fi debugging display, click on Pair new gadget.
ObserveThe Galaxy Watch creates two ports: one for pairing and the opposite for connecting.
-
In Android Studio, open the Terminal and enter the command to pair the watch along with your laptop:
adb pair ip_address:pairing_port
-
Enter the Wi-Fi pairing code when prompted.
-
Then, utilizing the IP handle and the connection port, enter the command to attach the watch:
adb join ip_address:connection_port
Now, you’ll be able to run, check, and debug your wearable apps in your Galaxy Watch instantly over Wi-Fi. You’ll be able to confirm that your gadget is linked by working adb gadgets
.
TipTo study extra concerning the course of mentioned on this weblog, watch the video tutorial beneath.
You probably have questions or considerations with the steps offered on this weblog, you’ll be able to share your queries on the Samsung Builders Discussion board. You may as well contact us instantly by means of the Samsung Developer Assist Portal for extra specialised assist.