diff options
Diffstat (limited to 'wearable/wear/XYZTouristAttractions/Application/src/main/AndroidManifest.xml')
-rw-r--r-- | wearable/wear/XYZTouristAttractions/Application/src/main/AndroidManifest.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/wearable/wear/XYZTouristAttractions/Application/src/main/AndroidManifest.xml b/wearable/wear/XYZTouristAttractions/Application/src/main/AndroidManifest.xml index 9d88b398..762f9cda 100644 --- a/wearable/wear/XYZTouristAttractions/Application/src/main/AndroidManifest.xml +++ b/wearable/wear/XYZTouristAttractions/Application/src/main/AndroidManifest.xml @@ -55,7 +55,16 @@ <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.MESSAGE_RECEIVED" /> + + <!-- filters by Constants.CLEAR_NOTIFICATIONS_PATH --> + <data android:scheme="wear" android:host="*" android:pathPrefix="/clear"/> + + <!-- filters by Constants.START_PATH, the prefix for + Constants.START_ATTRACTION_PATH ('/start/attraction') and + Constants.START_NAVIGATION_PATH ('/start/navigation') --> + <data android:scheme="wear" android:host="*" android:pathPrefix="/start"/> </intent-filter> </service> |