• Deadlocking with a mutex
All of these crash the app but the exit info reason is always something else.
There’s a couple of similar threads on this channel but they didn’t really help me.
Thanks!
not kotlin but kotlin colored 1
sorry 1
j
juliocbcotta
09/20/2024, 7:11 PM
No. The best you can do is profile your app and check where your cpu usage is high for a long time.... For instance you may be doing a bunch of IO ( instantiate or read shared preferences or dbs) in the application.onCreate method...
r
Ricardo C.
09/21/2024, 10:18 AM
I don't want to fix an ANR, I want to force one to test reporting of ANRs. It just turns out that it's harder to actually do one on purpose than I was expecting 😅
j
juliocbcotta
09/21/2024, 10:21 AM
A Thread.sleep(10000) in the main thread should be enough...
r
Ricardo C.
09/21/2024, 7:15 PM
I've tried that but the ApplicationExitInfo API in Android does not report it as such.