当前位置: 动力学知识库 > 问答 > 编程问答 >

Determine onAlert shown and dismissed in Android

问题描述:

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

http://developer.android.com/reference/android/view/ViewTreeObserver.OnWindowFocusChangeListener.html

Any other way to solve this for API level below 18 ?

分享给朋友:
您可能感兴趣的文章:
随机阅读: