I have to determine when alert is shown and dismissed in android. I don't have access to alert box object on the screen. One of the way to solve this problem is listen for onWindowFocusChanged event using ViewTreeObserver on root view. OnWindowFocusChanged is not supported below API level 18
Any other way to solve this for API level below 18 ?