Francescos
04/28/2022, 1:51 PMmyanmarking
04/28/2022, 1:59 PMmyanmarking
04/28/2022, 2:00 PMFrancescos
04/28/2022, 2:07 PMColton Idle
04/28/2022, 4:32 PMFrancescos
04/29/2022, 7:26 AMColton Idle
04/29/2022, 4:03 PMIan Lake
04/29/2022, 10:40 PMrememberSaveable
(if doing the logging from the Compose layer) or SavedStateHandle
(maybe the savedStateHandle.saveable
syntax added in Lifecycle 2.5.0-beta01) to save that you've done your one time logging since even a ViewModel won't survive process death and recreation (something you can easily test with the 'Don't keep activities' developer option)