title: Android - Forcing ANR for testing purpose
body: <p>Why i can't force Android <a href="http://developer.android.com/guide/practices/responsiveness.html" rel="noreferrer">ANR</a> with this code?
  No log messages or pop up. The application is just launched lazily.</p>
  
  <p>[UPDATE]</p>
  
  <p>I can't get it even sleeping a View.setOnClickListener or BroadcastReceiver.onReceive!</p>
  
  <p>Is there a trick?</p>
  
  <pre><code>public class MainActivity extends Activity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          try {
              Thread.sleep(10000);
          } catch (InterruptedException e) {
              Log.e("Test", "", e);
          }
      }
  }
  </code></pre>
  
  <blockquote>
    <p>I'm using Samsung GT-6200L with stock Android 3.2</p>
  </blockquote>