在处理问题的时候,经常会遇到ANR,停止运行等问题,经过分析和验证,和如下的一行关键log有关 WindowManager: Adding more than one toast window for UID at a time. 这一行log对应的代码如下: // If adding a toast requires a token for this app we always schedule hiding // toast windows to make sure they don't s…