One question about lifecycleobserver, After I debu...
# android
t
One question about lifecycleobserver, After I debugged on galaxy S9 and detected lifecycleobserver is not much accurate, when I quit app (send it to background) and open it again continuously , sometime onStop doesnt work and it then failed to trigger any event of onStart and onStop then. Anyone faced this problem and found a solution? I just wanted to detect if or not app is in background to process the event of passcode screen of the App. Thank you so much
d
I do I have a blog post is a little old but i think is still viable https://link.medium.com/oNta4kr1Qcb snd me a message if this does not help u
t
there are still some cases , when I close app and open app too fast, it means onStop didnt start, but I opened app to trigger onStart again, then it doesnt work either like the 1st case I posted above . Did you faced the problem like that before?
Hey, my test is ok on simulator, that issue only can reproduce on galaxy s9.on S9, when I open the app before onStop is triggered, then it happened that way, anyway thank you
d
Good to know! Good luck with it!