I am working on an app which listens for View events like scrolling, layout drawn using ViewTreeObserver. ViewTreeObserver has a method to check if it's alive before doing anything eg. adding listeners.
I have to reproduce the issue of dead / not alive ViewTreeObserver to see If my code works well in production. I don't see anything in android documentation to reproduce it.
I appreciate any help / pointers.
Thanks