android-anr-dialog

Call to “DisplayManagerGlobal.getDisplayInfo()” causes App Not Responding (ANR) in the app

a 夏天 提交于 2021-01-27 21:03:31
问题 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 on emulators or the test devices that I have got. What the app does : It is an app locker application, which draws a full screen lock view on application overlay and asks for a password (pattern), which also supports fingerprint unlock mechanism.

“Long monitor contention with owner” warning

你说的曾经没有我的故事 提交于 2020-01-23 01:07:04
问题 I get this warning message and since I see this message I also started to see the Google Play Services isnt responding popup and it closes my application after some time. I have review similar questions but could not find out the reason. Following is a sample of my handler thread usage. I do not know what to do to avoid this problem. @Override public void find(Func1<RealmQuery<Artist>, RealmQuery<Artist>> query, Action1<Result<List<Artist>>> onResult) { if (query != null) { handlerThread =

ANR (Force close/Wait) while generating a big enough list

允我心安 提交于 2020-01-14 19:37:29
问题 I am creating a kind of file explorer, in which if any application files are copied to phone/SD card I am showing it on an activity with dialog theme to user. For every new "app.apk" copied I am appending the name of the app and location to the dialog and the list is scrollable. My problem is, if I copy some 200+ apps onto the storage at once the list population gives Force close/wait dialog (ANR). How can I prevent my app from getting this kind of ANR? 回答1: If some large calculation and UI

WiFi changed status affecting my app

放肆的年华 提交于 2020-01-03 04:47:09
问题 I'm using WiFiManager through my app, at some level in the starting of the app it displays all the available WiFi networks to the user and enables him to choose one of them and make a connection to it, I'm making this by registering the CONNECTIVITY_CHANGE receiver through my manifest.xml : <receiver android:name="com.automation.standards.WifiReceiver" > <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> </intent-filter> </receiver> and then dealing with the

Android image view makes app slow

旧城冷巷雨未停 提交于 2019-12-25 13:59:25
问题 In my app I have a list view, which contains an image view. The image is loaded from bas64 encoded string. First the string is decoded and then converted it to bitmap and then the bitmap is loaded to the image view. All the decoding is done in an async task and concurrency is handled according to the below documentation. Processing Bitmaps Off the UI Thread The problem is the app is scrolling slow, and all other async tasks are not executing after that. any possible solutions? 回答1: You

Android app not responding at Calender.getInstance

你离开我真会死。 提交于 2019-12-24 08:27:11
问题 I am trying to get date doing calculations. For that I'm using Calendar cal = Calendar.getInstance(); I am using this import import java.util.Calendar; When the app comes to onResume I am calling a method. In that method, the first line is getting Instance(). But for some reason, I am getting this error(ANR). at java.util.Calendar.getInstance(Calendar.java:960) at java.util.GregorianCalendar.<init>(GregorianCalendar.java:231) at java.util.GregorianCalendar.<init>(GregorianCalendar.java:330)

App crashing on clicking on EditText with latest updates (gradle 4.4 - android studio 3.1)

一个人想着一个人 提交于 2019-12-24 02:40:11
问题 I recently updated my android studio to version 3.1 and also my gradle to version 4.4. Since, then I have been facing this issue of app going into ANR when clicking on an EditText that should popup a soft input keyboard. On clicking on an EditText I see that there are multiple GCs that get triggered and eventually the app crashes with and ANR message saying that there is a stack overflow exceeding the size of 8 MB. Here is the crash that I see: http://crashes.to/s/77a48e5d43c. Also pasting it

ANR errors - SCREEN OFF - How am I supposed to handle them?

穿精又带淫゛_ 提交于 2019-12-23 09:30:08
问题 I got this message on the developer console stating that my application had frozen because of: ANR Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x40000000 } There was no stack trace because this was raised by a pre-Froyo user. It doesn't even tell me which activity within my application caused the error - although I'd guess it was my Game activity. This also matches my own experience that sometimes when my phone is running low on battery that my application will just freeze

ANR in random usage of application

霸气de小男生 提交于 2019-12-23 08:51:50
问题 I have an VOIP application and the engine part is C(NDK) Level.On random usage of application i end with an ANR pointing to " at android.os.MessageQueue.nativePollOnce(Native Method)" . Using android-ndk-r5 ANR Traces: ----- pid 13735 at 2013-05-23 15:56:47 ----- Cmd line: com.myapp.voip DALVIK THREADS: (mutexes: tll=0 tsl=0 tscl=0 ghl=0) "main" prio=5 tid=1 NATIVE | group="main" sCount=1 dsCount=0 obj=0x41315508 self=0x413058e8 | sysTid=13735 nice=0 sched=0/0 cgrp=apps handle=1074442032 |

ANR caused by Input dispatching timed out - while trying to get my public IP address

杀马特。学长 韩版系。学妹 提交于 2019-12-21 04:19:11
问题 I get the following complete error message: Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 2. Wait queue head age: 9379.7ms.) See below the code + traces. It seems that the lock happens at GetIP_WAN.java:32 which is the line: BufferedReader br = new BufferedReader( new InputStreamReader(conn.getInputStream())); I call this function whenever I