Sending messages from Android Wear to host device

前端 未结 7 1937
忘了有多久
忘了有多久 2020-12-02 19:27

I\'m writing a custom Android Wear application that\'s supposed to fire a one-off message to the connected host device (the phone). Digging through the API, I found the foll

7条回答
  •  萌比男神i
    2020-12-02 19:37

    I have had a similar issue as discussed here https://plus.google.com/116088533685577893615/posts/deCyoF6ALvV. Based on my experiments it seems (although not documented) that the package name of the watch app needs to be the same as of the handheld app. I have created an example project for the message api here https://github.com/petrnalevka/wear.

提交回复
热议问题