diff options
3 files changed, 13 insertions, 6 deletions
diff --git a/wearable/wear/SynchronizedNotifications/Application/src/main/AndroidManifest.xml b/wearable/wear/SynchronizedNotifications/Application/src/main/AndroidManifest.xml index 04a69e01..b2cba0c9 100644 --- a/wearable/wear/SynchronizedNotifications/Application/src/main/AndroidManifest.xml +++ b/wearable/wear/SynchronizedNotifications/Application/src/main/AndroidManifest.xml @@ -42,8 +42,10 @@ </activity> <service android:name=".DismissListener"> <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.BOTH_PATH ('/both') --> + <data android:scheme="wear" android:host="*" android:pathPrefix="/both"/> </intent-filter> <intent-filter> <action diff --git a/wearable/wear/SynchronizedNotifications/Wearable/src/main/AndroidManifest.xml b/wearable/wear/SynchronizedNotifications/Wearable/src/main/AndroidManifest.xml index 5c4d259d..2bc2fd86 100644 --- a/wearable/wear/SynchronizedNotifications/Wearable/src/main/AndroidManifest.xml +++ b/wearable/wear/SynchronizedNotifications/Wearable/src/main/AndroidManifest.xml @@ -41,8 +41,13 @@ </activity> <service android:name=".NotificationUpdateService"> <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.BOTH_PATH ('/both') and + Constants.WATCH_ONLY_PATH ('/watch-only') --> + <data android:scheme="wear" android:host="*" android:pathPrefix="/both"/> + <data android:scheme="wear" android:host="*" android:pathPrefix="/watch-only"/>; </intent-filter> <intent-filter> <action diff --git a/wearable/wear/SynchronizedNotifications/gradle/wrapper/gradle-wrapper.properties b/wearable/wear/SynchronizedNotifications/gradle/wrapper/gradle-wrapper.properties index 07fc193f..44447c8f 100644 --- a/wearable/wear/SynchronizedNotifications/gradle/wrapper/gradle-wrapper.properties +++ b/wearable/wear/SynchronizedNotifications/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Apr 10 15:27:10 PDT 2013 +#Fri Apr 15 17:18:22 PDT 2016 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip |