How can anr be prevented?



How can anr be prevented?..

Answer / 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

More Android OS Interview Questions

Lists life cycle methods of android activity?

1 Answers  


Why did we open the android source code? What is the guardian app for android?

1 Answers  


Explain in brief about the important file and folder when you create new android application.

1 Answers  


Is android oreo better than nougat?

1 Answers  


Why is android so popular?

1 Answers  


Which class do we use for listening location update?

1 Answers  


Which activity class do you need to inherit to show google map?

1 Answers  


What is a widget on android?

1 Answers  


List the various storages that are provided by android.

1 Answers  


What is settings.gradle?

1 Answers  


What is the codename of android 6.0?

1 Answers  


Why is android used?

1 Answers  


Categories