Search code examples
androidwear-oshandheld

Open corresponding app on Handheld without notification from Android Wearable (Gear live)


I would like to develop an app on the wearable wich should be able to launch an app on my Handheld device, without the notification standard ("open on device") action. It should start the app on the handheld, even if the Handheld App is closed at the moment. Is there a solution to achieve this. I can't find it in the documentation. If I overread that in the official doc., please post a link.


Solution

  • To do that, you have to use the Wearable Data Layer API.

    Just send a message using the Message API from the Android Wear device to the handheld's one. The WearableListenerService of your handheld app can then launch an Intent to open the app.