Questions tagged [android-anr-dialog]

The Android "Application Not Responding" dialog message

384 questions
7
votes
1 answer

Is it okay to Query the DownloadManager on the UI Thread?

The DownloadManager has a method query(). My question is if it's okay to call this method on the UI Thread, or if it should only be called from a background thread? Can calling it ever cause an ANR?
yydl
  • 24,284
  • 16
  • 65
  • 104
6
votes
1 answer

ANR Input dispatching timed out (server) is not responding

In my Android application I am getting a very strange crash randomly. When I open the application I am fetching data from server on splash screen. When the application land on home page suddenly whole application is closed and here is what gets…
Amitanshu Gupta
  • 61
  • 1
  • 1
  • 4
6
votes
0 answers

Should getExternalCacheDir() be called outside Main Thread?

I am having a call to getExternalCacheDir() function on my Android App, and this is causing an ANR for some of Android 10 users having the following devices (HUAWEI P30 lite, Galaxy A40, Xperia XZ3). I am having the following stack trace for my…
AmineG
  • 1,908
  • 2
  • 27
  • 43
6
votes
0 answers

ANR with com.facebook.ads.AudienceNetworkActivity

I have got this reported under an ANR error in my Google Play Console. I'm using Ironsource network and Facebook ads mediation. I tried everything but have no clue. Here is all the stack trace I got from the Console: Input dispatching timed out…
6
votes
1 answer

android ANR BillingClient.queryPurchases

I am using Google billing service, version 2.0.3. Running the BillingClient.queryPurchases method in the UI thread in the activity onstart method, users sometimes encounter Application Not Responding errors like this: THREADS: "main" prio=5…
6
votes
0 answers

Understanding ANR logs provided by Android Vitals in the Play Store Console

I am getting an instance of a telephonymanager (single or multisim devices) and got several ANRs. I have managed to work through most of them but this one persists: *Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x50000010 (has…
6
votes
0 answers

Android UI render time

I got in Android Vital a warning that my UI render time is slow. As they explained in vital page: Frozen UI frames: Percentage of daily sessions during which users experienced more than 0.1% of frames with a render time greater than 700ms. A…
6
votes
0 answers

Android / ANR / "Total blocking GC time" takes several seconds

I get one anr, from the anr trace, the main thread is normal "main" prio=5 tid=1 Native | group="main" sCount=1 dsCount=0 obj=0x7507a710 self=0x7fae13ba00 | sysTid=12991 nice=0 cgrp=default sched=0/0 handle=0x7fb1746fe8 | state=S schedstat=(…
Jet CHEN
  • 91
  • 2
6
votes
0 answers

GMS background crash

My app has recently started getting this error and giving an ANR whenever the user selects to open a maps app through my app. When you try to back out of the maps and return to my app, it's stuck on a black screen till it prompts the user to decide…
KairisCharm
  • 1,363
  • 1
  • 13
  • 32
6
votes
0 answers

Android ANR, no activity code in sight

I've got an ANR happening, while trying to open 2 separate activities. Very sporadic, only certain users, haven't been able to replicate on any of our test hardware. Both reports have a series of nondescript threads, and two background threads of…
kolosy
  • 3,029
  • 3
  • 29
  • 48
6
votes
1 answer

How does the Android platform detect ANR problems?

When an Android application is not responding, an ANR dialog would pop up. My question is: how does the Android platform detect ANR and make the decision to initiate such a pop-up dialog.
dacongy
  • 2,504
  • 3
  • 30
  • 48
5
votes
2 answers

How Do you Interpret Android ANR Reports

I've googled till my fingers were sore, but I couldn't figure out how to interpret the ANR reports that are sent to developers by Google. So at the top of the report, this intent is listed as the cause: ANR Executing service…
rustyshelf
  • 44,963
  • 37
  • 98
  • 104
5
votes
2 answers

How can I find out which parts of my code are using the UI Thread the most?

I'm trying to chase some ANRs without any stack traces. I'm at a point where I just want to review every part of my code that uses the UI thread heavily. Is there a way to graph this or do some sort of trace to see which methods took the longest…
casolorz
  • 8,486
  • 19
  • 93
  • 200
5
votes
0 answers

ANR on Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x50200010 (has extras) }

The Play Store has a lot of ANRs for which it refuses to give me a stack trace. This is my top ANR without a stack trace: Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x50200010 (has extras) } Since it says…
casolorz
  • 8,486
  • 19
  • 93
  • 200
5
votes
0 answers

Firebase cloud messagin causes ANR

I've an app in production with over 10k daily users 2% of the sessions are being reported as ANR due: Broadcast of Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x11000010…
Rafael Lima
  • 3,079
  • 3
  • 41
  • 105