在觸發(fā)ANR的地方添加下面的代碼即可
try{
Thread.sleep(1000000);
}catch(InterruptedExceptione){
e.printStackTrace();
}