aboutsummaryrefslogtreecommitdiff
path: root/wearable/wear/XYZTouristAttractions/Wearable/src/main/AndroidManifest.xml
diff options
context:
space:
mode:
Diffstat (limited to 'wearable/wear/XYZTouristAttractions/Wearable/src/main/AndroidManifest.xml')
-rw-r--r--wearable/wear/XYZTouristAttractions/Wearable/src/main/AndroidManifest.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/wearable/wear/XYZTouristAttractions/Wearable/src/main/AndroidManifest.xml b/wearable/wear/XYZTouristAttractions/Wearable/src/main/AndroidManifest.xml
index d353b290..fc086da1 100644
--- a/wearable/wear/XYZTouristAttractions/Wearable/src/main/AndroidManifest.xml
+++ b/wearable/wear/XYZTouristAttractions/Wearable/src/main/AndroidManifest.xml
@@ -44,7 +44,14 @@
<service android:name=".service.ListenerService">
<intent-filter>
- <action android:name="com.google.android.gms.wearable.BIND_LISTENER" />
+ <!-- listeners receive events that match the action and data filters -->
+ <action android:name="com.google.android.gms.wearable.DATA_CHANGED" />
+ <!-- filters by Constants.EXTRA_ATTRACTIONS -->
+ <data android:scheme="wear" android:host="*" android:pathPrefix="/attraction"/>
+
+ <action android:name="com.google.android.gms.wearable.MESSAGE_RECEIVED" />
+ <!-- filters by Constants.CLEAR_NOTIFICATIONS_PATH -->
+ <data android:scheme="wear" android:host="*" android:pathPrefix="/clear"/>
</intent-filter>
</service>