I used to use com.google.android.gms.wearable.BIND_LISTENER
and WearableListenerService
to communicate between my Mobile and Wear device.
After the intent com.google.android.gms.wearable.BIND_LISTENER
getting deprecated I am supposed to use:
<service android:name=".MyListenerService">
<intent-filter>
<action android:name="com.google.android.gms.wearable.DATA_CHANGED" />
<action android:name="com.google.android.gms.wearable.MESSAGE_RECEIVED" />
<data android:scheme="wear" android:host="*" android:pathPrefix="/prefix" />
</intent-filter>
</service>
But how do I combine it with my WearableListenerService
? where will the broadcast received?