adspace


How can anr be prevented?

Answer Posted / Abhinav Srivastava

Application Not Responding (ANR) can be prevented by ensuring that your application responds quickly to system events such as user interactions. You should perform long-running operations on a separate thread, and update the UI using Handler or runOnUiThread(). Additionally, you can use StrictMode to detect potential performance issues.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the latest version of android?

1088


What all devices have you worked on?

1059


What did you like better, ice cream sandwich or kitkat?

978


Which is the latest version of android os?

1048