The Android "Application Not Responding" dialog message
Questions tagged [android-anr-dialog]
384 questions
5
votes
1 answer
Understanding ANR stack trace given by google play
We recently developed a game using cocos2d-js (3.17.1) for android & getting more number of ANR's,I want to understand how we can easily understand the stack trace reported.
I observed like some of the lines are bold & some of them are light gray…

Hatim.Developer
- 83
- 5
5
votes
1 answer
Find out the reason of ANR using Android Profiler
My application pops up the ANR (Application is not responding) dialog. For a long time I am trying to solve this issue.
I have made lots of optimisations and finally my main thread takes 2~3 million microseconds however that is not enough too.
Also…

Hilal
- 902
- 2
- 22
- 47
5
votes
3 answers
Pressing "Close App" in Android ANR dialog, closes and immediately relaunches app
I am facing a weird (in my opinion) issue. My app rarely produces ANRs. I am trying to reduce them wherever possible and i have been succesful so far. However, when the ANR dialog does appear, if i (or any user) decide to close the app by pressing…

Sotiris S. Magionas
- 759
- 6
- 25
5
votes
0 answers
ANR Investigating with trace.txt
First of all, Thank for visitor who take a look this question,
I faced heavy issue with ANR because trace.txt is not clearly, I cannot extract any information from that file. So I post the file in order to everyone help me:
"main" tid=1 Native…

ltbaogt
- 55
- 5
5
votes
1 answer
Input dispatching timed out ANR
I am getting the following ANR a lot in my application
Input dispatching timed out (Waiting to send key event because the focused window has not finished processing all of the input events that were previously delivered to it. Outbound queue…

Amira Elsayed Ismail
- 9,216
- 30
- 92
- 175
5
votes
1 answer
main thread is blocked by itself by Object.wait?
My layout has a SurfaceView. Sometimes when my app switches from background to foreground, I get ANR. I think the reason is that the main thread is blocked by the lock method.
The most important part is :
JNI: CheckJNI is off; workarounds are off;…

suitianshi
- 3,300
- 1
- 17
- 34
4
votes
1 answer
ANR when launching service from AppWidgetProvider
I'm developping a simple widget which update by downloading a big image file.
To do so I'm just launching a service which retrieve the image. I launch it from the onUpdate method of AppWidgetProvider.
Like that :
public void onUpdate(Context…

Ant
- 85
- 1
- 6
4
votes
2 answers
Application doesnt respond after resuming it
My 'game' keeps crashing after I resume it. Basically, I launch the app and everything works. Then I press the home button and go back to my home screen. Still all the normal stuff. But THEN when I open the app back up, it just freezes and after 1…

chrypthic
- 579
- 1
- 6
- 15
4
votes
1 answer
Android Webview - chromium shows ANR when method webView.loadUrl is called (with headers)
We have an application that uses Android webview and we have noticed since 04/07/2021 ANRs when call the code below (The code is called in UIThread):
public void onLoadUrlWithHeaders(final String url, final Map headers) {
…

DRBF
- 111
- 7
4
votes
1 answer
Call to "DisplayManagerGlobal.getDisplayInfo()" causes App Not Responding (ANR) in the app
Apparently, something in the application calls the method from different threads (both main and a binder thread) which causes an internal ANR. It happens quite frequently and I don't have an idea as to where it happens because I cannot reproduce it…

Furkan Yurdakul
- 2,801
- 1
- 15
- 37
4
votes
0 answers
Android | ANR - how to detect?
Last version of my app has a lot of ANR issues on Google Play Console. However , I have no idea how to detect it because unlike crash - there is no specific info what causes this error. I'm not able to reproduce it as well. I tried to set…

Bartos
- 1,007
- 3
- 15
- 38
4
votes
2 answers
Need some insight on this recurring issue, ANR keyDispatchingTimedOut
I have an app that keeps getting ANR in one specific component, and I cannot figure out what is hogging the cpu time. Lately I've been getting two kinds of ANR, a native and a wait.
DALVIK THREADS:
"main" prio=5 tid=1 NATIVE
| group="main"…

Danedo
- 2,193
- 5
- 29
- 37
4
votes
0 answers
Is it possible to avoid ANR caused by com.google.android.gms.ads.AdView?
Occasionally the following code causes Application Not Responding (ANR):
//Google Ads
AdView adView = (AdView) findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
//adView.loadAd must be called on a UI…

Hong
- 17,643
- 21
- 81
- 142
4
votes
0 answers
After updateing Android Studio from 2.3 to 3.0, getting lot of ANR in my app
I have my app on Play store. It was working smoothly. I updated android studio to 3.0. I was having one bug for Android 8.0 and fixed it and given update to beta, On play console Suddenly I am getting lot of ANR for beta version.
ANR LOG:
Main…

PAVAN
- 771
- 4
- 14
4
votes
2 answers
Getting Lots of ANR due to AccessibilityNodeInfo getChild
Getting lot of ANR reports,
"main" prio=5 tid=1 Runnable
| group="main" sCount=0 dsCount=0 flags=0 obj=0x72e8a568 self=0xe65da000
| sysTid=20592 nice=0 cgrp=default sched=0/0 handle=0xe9f6b4a8
| state=R…

Nikhil
- 1,023
- 17
- 35