The Android "Application Not Responding" dialog message
Questions tagged [android-anr-dialog]
384 questions
2
votes
1 answer
/data/anr/traces.txt is not accessible in program since Android N
I used to collect ANR info by reading and analysing /data/anr/traces.txt programmatically. It works very well before Android N.
On Android N, "/data/anr/traces.txt" is NOT accessible.
File anrFile = new File("/data/anr/traces.txt");
if…

RoFF
- 529
- 5
- 27
2
votes
2 answers
Regex pattern throws ANR on Android
I am developing Android application with email validation, for which I am using Regex, which is attached below:
It works in certain conditions, but for certain conditions, it gives me App Not Responding errors.
For example, if I put some text with…

nilkash
- 7,408
- 32
- 99
- 176
2
votes
0 answers
Changing Android Activity Base Class
I want to use anr-watchdog in a local repository of apps. Assume that I have for example 1000 apps (apk + src) and I want all of them to initialize the anr-watchdog in their main thread. All the things I need is a static method call in one of the…

ConductedClever
- 4,175
- 2
- 35
- 69
2
votes
0 answers
My Android app freeze the Mobile System UI
Going through the problem from the last few weeks but still, can't find a solution. Searched a lot on internet but all in vain because such issues are hard to describe when you don't know which part of the code is creating a problem.
Once in a…

Sandeep Singh
- 1,013
- 1
- 11
- 25
2
votes
3 answers
RecyclerView notifyDataSetChanged() freezes UI without ANR
We have a NestedScrollView that contains two different RecyclerView both working with vertical scroll. The scroll layout lays inside SwipeRefreshLayout.
Upd: We know about getItemViewType(pos) method and use it in other places. But here we have…

Gaket
- 6,533
- 2
- 37
- 67
2
votes
0 answers
Map Activity ANR Issue
I have a navigation drawer activity. At onCreate, i have created a MapFragment using fragment transaction.
Fragment fragment = null;
String newttitl = "TEST";
fragment = new MapFragment();
FragmentManager fragmentManager…

Visal Varghese
- 436
- 5
- 14
2
votes
1 answer
Where is source code of ANRManagerNative located in aosp project
I'm a new bee in AOSP project. I'm trying to find codes relevant to the ANR system. But when I search ANR in all sources, none was found. Where can I find the ANRManagerNative of other ANR classes, in java sources or c/c++ sources? Thanks.

Yage
- 21
- 4
2
votes
0 answers
fetchIfNeeded causes freezing/hanging
I am developing an android app using the parse API. I have noticed that after migration, every time I call fetchIfNeeded() or fetchIfNeededInBackground() it only works well if the user has very fast internet. Otherwise, if the internet is slow or if…

Patrice Andala
- 184
- 1
- 14
2
votes
1 answer
What caused the ANR?
An ANR happened on APP WeChat. There are a lot of information about memory in traces file. Is it caused by lack of memory? Do all ANR traces have information about memory? How to interpret the trace file? Part of the trace file is as below.
-----…

user1651758
- 145
- 12
2
votes
0 answers
How to solve this kind of Android ANR(system_server first process)?
I got a ANR report from user:
here is the traces.txt:
----- pid 2398 at 2015-11-09 20:34:06 -----
Cmd line: system_server
JNI: CheckJNI is off; workarounds are off; pins=5; globals=1465 (plus 72 weak)
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0…

Gohan
- 2,422
- 2
- 26
- 45
2
votes
1 answer
ANR in removeMessages and enqueueMessage
I have the following ANR after entering and exiting (several times) a screen which uses an AsyncTask to load some data.
The full ANR is here: http://pastebin.com/g1MDv44Q
A few observations:
My package name doesn't appear anywhere on the stacks
The…

thiagolr
- 6,909
- 6
- 44
- 64
2
votes
2 answers
DialogFragment causing ANR
I'm having some weird issues with DialogFragment on a real Device. Samsung Galaxy Note 4.
When I try to open an dialog, the application enters an infinte loop (something from the system) and it gives ANR after a while. Everything is blocked. There…

Ionut Negru
- 6,186
- 4
- 48
- 78
2
votes
4 answers
Android app not responding (ANR)
I have an android app, which listens to a socket from the server and retrieves data in json format and save data in the database. Resource cursor adapter is used to display the data in a list. When the app is idle for 10 minutes or more, it is not…

Jyothish
- 587
- 2
- 8
- 24
2
votes
1 answer
Text-To-Speech causing ANRs with most drivers and long texts
My app allows to send and queue paragraphs to the TTS engine. Think of a book, you long-press a paragraph, and it is sent to the TTS engine in QUEUE mode.
This always worked flawlessly in Androids pre-Jelly bean, however in KitKats, Jelly Beans and…

rupps
- 9,712
- 4
- 55
- 95
2
votes
0 answers
Android ANR when trying to start service
I have a service which has been working perfectly for weeks, and in the last day has suddenly started having problems. I know I've added something recently which triggered this behavior but looking back through my GIT logs I can't find anything that…

Jared
- 1,449
- 2
- 19
- 40