Have you ever drawn charts on wear os, do you have...
# compose-wear
l
Have you ever drawn charts on wear os, do you have experience or library support heart rate on wear? Can I ask for some experience? compose-wear
y
There are quite a few compose charting libraries. If you use one that works in terms of Canvas, you can also use it for a tile. I'll dig out a simple of this.
l
oh, thank you. https://github.com/patrykandpatrick/vico i research some library. I will customize with canvas, if ok, I will share with everyone. But it’s really difficult when the device wears a small screen size.
y
Not all mobile charts are full screen. So I think it's very doable. There are design patterns like Sparklines that are word sized.
I suspect that with the new graphics layer APIs it should be possible to use a Composable (non interactive) in a tile. So if you hit that, we should discuss.
Sorry, I don't have a public sample. The only public one I had was using Canvas draw operations directly. I think you found a good one.
As I said, ping me if you want to try to reuse the same element in a Tile.
l
thank you. i’m trying to draw with canvas.
y
I'd suggest disabling features on mobile, such as scrolling, zooming, and just show quick glanceable data.
l
okay, thank you. I will try it.
f
I use the canvas with compose
2
l
IMG_8549.MOV
I have an issue that is quite stuck, I want to open the wear app from the phone app when I want to start a workout, is this currently possible? Same business on Samsung monitor by Samsung.
y
Yes, just use RemoteActivityHelper and make the screen you want to open a deeplink and browsable.
l
I will try, thank you very much.👍
But an app that hasn’t been launched on Google Play yet, is in testing, can I wake it up?
y
Yep. As long as they share the same package and signing key. So release vs debug can be a problem.
l
But I want to trigger from the app and open wear, even when wear is off.
Does RemoteActivityHelper support opening an app on the phone from wear?
y
It won't turn the screen on
It works both directions.