How can I detect that the application is in the ba...
# compose
m
How can I detect that the application is in the background?Disposable Effect not working for me
i
m
I hava a simple counter app.I want to update database when user closed app from recent background app but i cant detect that.Is this solve my problems?
i
You'll have to be specific about what interaction you're trying to track. If you mean you want a callback when the user makes your app no longer visible (either by hitting the home button, system back button, receiving a phone call, anything that causes your app to no longer be visible to the user), then yes, this would be what you'd use