How to send notification from handheld to wear to open Activity on wear device

The pattern to use for this is: Create a DataItem on the mobile. It will be synced to the connected wearable automatically. On the wearable, implement a WearableListenerService and listen for onDataChanged events. When you receive a DataItem, create a notification (with the data sent in the DataItem) and send it locally (i.e. on the … Read more

“Failed to resolve: com.android.support:support-v4:26.0.0” and other similar errors on Gradle sync [duplicate]

I don’t have an Android wear project, but I had the same problem when I wanted to upgrade the Support Library version for an existing project to 26.0.0. Since 26.0.0 the support libraries are available through Google’s Maven repository. So I had to add the repository to my build. gradle file. allprojects { repositories { … Read more