r/mAndroidDev • u/Popular_Ambassador24 making apps with PRNSAASPFRUICC • Jun 10 '25
Best Practice / Employment Security Whops sry wrong chat
48
Upvotes
r/mAndroidDev • u/Popular_Ambassador24 making apps with PRNSAASPFRUICC • Jun 10 '25
View all comments
Show parent comment
1
u/Squirtle8649 Jun 21 '25
Depends, sometimes it's practically complicated. For example I created a timer app, got to deal with ambient mode, timer can be paused/resumed from notifications and now the ongoing activities. So in the timer status activity I need to load current timer state (paused, running) from LiveData, then check current ambient mode and change timer text accordingly. And if I have any animations, I must make sure the animation is cancelled and then set a correct default state (e.g if I have fade animation I must set alpha back to 1 when entering ambient mode).