I think some part of the solution must be omitted, however, because I keep getting this crash:
E/AndroidRuntime: FATAL EXCEPTION: Thread-4
Process: com.webiphany.wearsync, PID: 27299
java.lang.NullPointerException: GoogleApiClient must not be null
at com.google.android.gms.common.internal.zzac.zzb(Unknown Source)
at com.google.android.gms.internal.zzzv$zza.<init>(Unknown Source)
at com.google.android.gms.wearable.internal.zzm.<init>(Unknown Source)
at com.google.android.gms.wearable.internal.zzcb$2.<init>(Unknown Source)
at com.google.android.gms.wearable.internal.zzcb.getConnectedNodes(Unknown Source)
My wear and mobile apps are here:
The relevant connection code for the wear app is here:
The connection code for the android app is here:
Any suggestions on what I am doing wrong?
android-developers.blogspot.se - Deprecation of BIND_LISTENER with Android Wear APIs
...but it looks like you changed that already.
I understand you're probably still in the early stages, but n you ListenerService I see you implemented on onMessageReceived, but you listen for all other events as well. This would start that service for just about anything.