Android App Development, AndroidDev, Android, Android Anr, Android Kernel.
text field to the main Activity XML. Add onTouchEvent Method and update the text field infinitely on the UI Thread which will cause an ANR for sure. @Override public boolean onTouchEvent(MotionEvent event) { while(true) { String s = new String("ABC"); text.setText(s); } } Once you understand the