Skip to content

This example serves to show how to connect and effectively perpetuate a tight bluetooth link between an Android device and a wearable WearOS device

License

Notifications You must be signed in to change notification settings

Gyakobo/Android_to_wearOS_bluetooth_communication

Repository files navigation

Android to WearOS bluetooth communication

image image image

Author: Andrew Gyakobo

This following example is inspired by the following publication(s): website

This example serves to show how to connect and effectively perpetuate a tight bluetooth link between an Android device and a wearable WearOS device

Regarding the setup:

  1. Open the 'AndroidManifest.xml' file and add the following permissions to both the Android and WearOS devices:
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
  1. Remember to definitely declare the service in the "AndroidManifest.xml" file for the WearOS device
<service android:name=".DataLayerListenerService">
   <intent-filter>
       <action android:name="com.google.android.gms.wearable.BIND_LISTENER"/>
   </intent-filter>
</service>

Note:

  • For both devices you'll have to in order to instantiate end-to-end communication you'll need to know each devices MAC address "00:00:00:00:00:00"

Note: The following development will soon enough be deprecated in favour of Kotlin. Java just seems to grotesquely large and outdated.

About

This example serves to show how to connect and effectively perpetuate a tight bluetooth link between an Android device and a wearable WearOS device

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published