anrwatchdog的使用
下载地址:https://github.com/SalomonBrys/ANR-WatchDog#with-gradle–android-studio可以只下载jar包,放在libs下import com.github.anrwatchdog.ANRWatchDog;主线程中使用new ANRWatchDog().start(); 默认检测5s内没响应,就为anr可以修改时长new ANRWatchDog(10000).start();更多使用方法查看上面的链接,写的挺详细的...