Does anyone know if you can manually change/update...
# compose-wear
a
Does anyone know if you can manually change/update the time that shows up for your app within the recent apps menu ? Since my app has a timer in it (counting sometimes up and sometimes down), it would be great to reflect that time vs what the OS shows on it's own. Another great one would be just to hide that time so it's not confusing to the user
👍🏼 1
e
Can't you just update the status using this API?
Copy code
.setStatus(ongoingActivityStatus)
from: https://developer.android.com/training/wearables/notifications/ongoing-activity#ongoing-act
l
@enighma I think it has nothing to do with ongoing activities. On the Samsung Galaxy Watch 4+, you see screenshots of the recent apps (unlike on the Pixel Watch or emulator), and these include the time, which dates from last time the app was open, so it's outdated within one minute.
e
Yeah, so this where a vanilla WearOS device diverges a bit from a Samsung device. My answer was mainly for a vanilla device. In regards to screenshots, I don't think you can request those being re-rendered. Your best bet is to run an ongoing activity, but that only makes sense if it's hight priority. I don't know how Samsung renders those, but on the pixel watch you will be able to update the text in recents.
a
@enighma I might be able to use updateStatus with some of the stopwatch parts to achieve what I want. Just to reiterate this is for a workout style app, so you can see how you would want to show specifically the time left in that recent apps menu vs how long the ongoing app has been alive for
I'll try this out and update the thread here tomorrow with findings 🙏
It's this time I am trying to change
e
Cool, yeah, then I think what I linked should work. I think you can update that data once per second, and you need an ongoing activity.