私のモバイル機器とWear機器間の通信には、com.google.android.gms.wearable.BIND_LISTENER
とWearableListenerService
を使用しました。Android Wear:「com.google.android.gms.wearable.BIND_LISTENER」の回避策
意図com.google.android.gms.wearable.BIND_LISTENER
は廃止取得した後、私が使用するようになっています:
<service android:name=".MyListenerService">
<intent-filter>
<action android:name="com.google.android.gms.wearable.DATA_CHANGED" />
<action android:name="com.google.android.gms.wearable.MESSAGE_RECEIVED" />
<data android:scheme="wear" android:host="*" android:pathPrefix="/prefix" />
</intent-filter>
</service>
しかし、どのように私は私のWearableListenerService
とそれを組み合わせるのですか?放送はどこで受信されますか?あなたのような
私はDATA_CHANGEDとMESSAGE_RECEIVEDを使用しています。しかし、私は着用可能なListernerServiceで何も受け取っていません –