---
title: "What is a ANR ?What are the measures to avoid application ANR?"  
description: "What is a ANR ?What are the measures to avoid application ANR?"  
author: "Anonymous User"  
published: 2015-06-08  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/2615/what-is-a-anr-what-are-the-measures-to-avoid-application-anr  
category: "android"  
tags: ["android"]  
reading_time: 2 minutes  

---

# What is a ANR ?What are the measures to avoid application ANR?

ANR is short for Application Not Responding. Android systems shows this dialog, if application is performing too much of task on main thread and been unresponsive for a long period of time.ANR in application is annoying to user. It can be caused due to various reasons. Below are some of the tips to avoid ANR\
Perform all you long running network or database operation in separate threadIf you have too much of background tasks, then take it off the UI thread. You may use IntentServiceServer not responding for longer period can be guilt for ANR. To avoid always define HTTP time out for your all your webs service calls.Be watchful of infinite loops during your complex calculations

## Answers

### Answer by Anonymous User

ANR is short for Application Not Responding. Android systems shows this dialog, if application is performing too much of task on main thread and been unresponsive for a long period of time.ANR in application is annoying to user. It can be caused due to various reasons. Below are some of the tips to avoid ANR\
Perform all you long running network or database operation in separate threadIf you have too much of background tasks, then take it off the UI thread. You may use IntentServiceServer not responding for longer period can be guilt for ANR. To avoid always define HTTP time out for your all your webs service calls.Be watchful of infinite loops during your complex calculations


---

Original Source: https://www.mindstick.com/interview/2615/what-is-a-anr-what-are-the-measures-to-avoid-application-anr

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
