It sends via the data commands, which is a broadcast, instead of the send message command. Install the mobile app on the phone/tablet device that is connected to the wear device. You will need to install the wear app on to the wear device. WearableDataLayer3 is an example of how send data back and forth between the wear app and a phone app using the data layer in google-playservices. The listeners for the data are in the mainactivity. WearableDataLayer2 is an example of how send messages back and forth between the wear app and a phone app using the data layer in google-playservices. Uses the listener service in a separate class. WearableDataLayer is an example of how send messages back and forth between the wear app and a phone app using the data layer in google-playservices. WearSensorsDemo is an example of using the sensor (Game Rotation vector). WearApp is an example of standalone app for the watch. Can be degraded to API 21 and should still work. TapEventsDemo a simple watchface to demo the tapevents. MyWatchFace several examples of watch faces for the wear device. This requires the min API of 23 for all the wear examples Note, they were all tested and working on Wear OS 1.0 device (wear v2.3.0 and Android OS 8.0.0) It was tested and working on Wear OS 1.0 device (wear v2.3.0 and Android OS 8.0.0).Īll examples below are using Wear 2.3+ with support.wear 27+. Should work on all versions of wear 1.0+ and 2.x.+. WearNotiDemo example of how to send notifications to the wearable device. V1.3.0/ are some of these examples halted at v1.3.0, since v2.1 and support.wear changes/deprecated the APIs. Eclipse/ is old examples in the eclipse format for wear v1.0.0
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |