Keeping your application responsive

How many times has it happened to you that you use some Android application and get the message saying that the application is not responding? Why does this happen? We will explain! Pay attention to these points so you don't have the same thing happening with your application:

If it still happens that you have ANRs, or your application behaves sluggishly, use tools such as systrace and Traceview to track the roots of your problems.