Mike at Savient
Mike at Savient

Reputation: 270

Docking wear app to watch face

Apologies for an 'open' question, but can anyone provider pointers on how to 'dock' my app to the Android Wear watch face?

Essentially, I want users of the application to be able to swipe left to right (or vice-versa) from the edge of the screen to open the application, compared to having to scroll the list of applications after tapping the watch face.

I've seen this implemented in another wear app, but don't know the right terminology to produce meaningful results in Google. Is it a wallpaper service, specific view type, touch listerner service etc?

Many thanks.

Upvotes: 0

Views: 67

Answers (1)

gruszczy
gruszczy

Reputation: 42158

You can't receive touch events inside the WatchFaceService, touch delivery is disabled.

I can't say for sure how the app you saw implemented the desired behavior, but it probably did by inserting views directly into the WindowManager from a Service.

Checkout this youtube video: https://www.youtube.com/watch?v=S3vHjxonOeg I don't know how well the Standout library does its job, but it should give you enough examples to figure out yourself, how to add views to the WindowManager.

Upvotes: 0

Related Questions