What is the difference between ANR and crash in Android?

前端 未结 13 2261
北海茫月
北海茫月 2020-12-07 22:56

I have searched on the internet regarding what an ANR is. And I studied those references as well. But I don\'t get details regarding a crash in Android.

Can someone

13条回答
  •  没有蜡笔的小新
    2020-12-07 23:29

    [ANR and Crash Different][1] Android applications normally run entirely on a single thread by default the “UI thread” or “main thread”. This means anything your application is doing in the UI thread that takes a long time to complete can trigger the ANR dialog because your application is not giving itself a chance to handle the input event or intent broadcasts.

提交回复
热议问题