Java tutorial
//package com.java2s; import android.text.format.DateUtils; public class Main { /** * This method make ANR */ public static void anr() { // for (int i = 1, n = 0; i > n; i++) { // Log.d(TAG, "i=" + i + ", n=" + n); // } try { Thread.sleep(DateUtils.SECOND_IN_MILLIS * 12); } catch (InterruptedException e) { e.printStackTrace(); } } }