In Android Wear application i've implemented DataItem.DataListener interface for an Activity. Since i already created WearableListenerService for some other usages. Now the situation is when i want onDatachanged() in MyActivity it will execute onDatachanged() of WearablelistenerService. Also viceversa
Asked
Active
Viewed 242 times
1 Answers
1
I guess you need to use the path (event.getDataItem().getUri().getPath();
) to define the recipient or the purpose of the respective data map. Every listener should evaluate certain paths only to avoid confusions.

Falko
- 17,076
- 13
- 60
- 105