How to avoid anr status?



How to avoid anr status?..

Answer / Rajendra Singh Rana

ANR (Application Not Responding) can be avoided by ensuring that the main thread of your app is not blocked for too long. This can be achieved by performing heavy computations and network operations on a separate thread, using AsyncTask or other threading mechanisms. Additionally, you should avoid blocking the main thread when interacting with the UI.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Android OS Interview Questions

What is the importance of settings permission in app development?

1 Answers  


Explain me what is an intent?

1 Answers  


What is action_view?

1 Answers  


What are some of the disadvantages of android?

1 Answers  


Why ttl (time to live) is required?

1 Answers  


What is android application module?

1 Answers  


Explain alertdialog in android?

1 Answers  


What is android:oneshot?

1 Answers  


What is a content provider? How is it implemented?

1 Answers  


Does Android support the Bluetooth serial port p roflle?

1 Answers  


What is app.iml/ directory?

1 Answers  


Features of Android:

1 Answers  


Categories