笔试题:ANR的类型与避免方法
对于你的应用中任何可能长时间执行的操作,你都不应该执行在UI线程。你可以创建一个工作线程(a worker thread),把那些操作都执行在工作线程中。This keeps the UI thread (which drives the user interface event loop) running and prevents the system from concluding that ...