Why i can\'t force Android ANR with this code? No log messages or pop up. The application is just launched lazily.
[UPDATE]
I can\'t get it even sleeping a V
I used this code for force ANR
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void force(View view){ while(true) {} }
I just created a simple button in the xml file and set android:onClick=force
android:onClick=force