The Android "Application Not Responding" dialog message
Questions tagged [android-anr-dialog]
384 questions
-1
votes
1 answer
How to Avoid ANR while loading 100+ object from server and setting It to adapter ; in android
I have MainActivity which calls server using AsyncTask and gets 100+ list of objects from server after getting I'm using adapter to set these list in listview. This time if I perform any action app shows ANR after some times app will work normally…

sana
- 11
- 2
-1
votes
1 answer
dilemma UI Thread or new Thread
I'm having a bunch of textviews and buttons initially set as GONE in .xml and I'm setting up code to reveal them (make them VISIBLE) one by one in short intervals. If I use UI thread, I risk "Application not responding" (or "ANR") if the interval is…

Nemanja
- 211
- 6
- 16
-1
votes
2 answers
How to modify UI's views in other thread different than the main one due to heavy modifications
I have the following problem. I'm working on a mobile solution that consumes data from a server. For thoses HTTP transactions I obviously use an AsyncTask in order to separate this communication task from the main thread. However, after a successful…

Julio Carrasquel
- 11
- 4
-1
votes
1 answer
ANR while trying to load Activity after FragmentDialogDismiss
I have an activity that sends a BC and waits 5 seconds for the response using AlarmManager.
Once i get the broadcast i:
1. remove the FragmentDialog using mDialog.dismiss();
2. start a new activity using getActivity().startActivity(myIntent);
I'm…

codeScriber
- 4,582
- 7
- 38
- 62
-1
votes
3 answers
Running Temporarily Looping Android Code
I would like to make an android app that will complete its start up and then run a while loop until the user had completed a certain task. Then the code would run another function to make sure the user has completed the task correctly. How should I…

Andrew Gies
- 719
- 8
- 20
-1
votes
1 answer
Strange ANR in StringBuilder
ANR stack from Android Developer Console:
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0)
"main" prio=5 tid=1 SUSPENDED
| group="main" sCount=1 dsCount=0 obj=0x40022198 self=0xcec8
| sysTid=15809 nice=0 sched=0/0…

Nik
- 7,114
- 8
- 51
- 75
-2
votes
2 answers
Android ANR for Timeout executing service while binding a service
I am getting a ANR while binding a service from another application. The Anr is "Timeout executing service". Below is the log-
App.class :-
onCreate {
//code
}
Service.class
Add some code here for reference
Logs :-
11-11 10:15:24.880 2690 2754…

Debabrata
- 1
- 1
- 2
-2
votes
1 answer
How to avoid ANR From an app when it is not in the foreground?
I am trying to find a solution for Application Not Responding (ANR) error when my app is in background. I want any ANR not to occur when my app is not in foreground.
How this can be achieved?
Thanks in advance.

NS.
- 98
- 1
- 13
-2
votes
1 answer
How to implement AsyncTask on my code?
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//connMgr = (ConnectivityManager) this.getSystemService(CONNECTIVITY_SERVICE);
//if…

user1310156
- 87
- 2
- 7