app • Lifecycle handled by the system • Only one per application allowed <service android:name=".DataLayerListenerService"> <intent-filter> <action android:name="com.google.android.gms.wearable.BIND_LISTENER" /> </intent-filter> </service>
Uri uri = new Uri.Builder() .scheme(PutDataRequest.WEAR_URI_SCHEME) .authority(nodeId).path(path).build(); PendingResult<DataApi.DataItemResult> result = Wearable.DataApi.getDataItem(googleApiClient, uri); return result.await().getDataItem(); }