What is the difference between ANR and crash in Android?

前端 未结 13 2162
北海茫月
北海茫月 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:31

    ANR also caused by-

    1. No response to an input event (such as key press or screen touch events) within 5 seconds.
    2. A BroadcastReceiver hasn't finished executing within 10 seconds.
    0 讨论(0)
  • 2020-12-07 23:31

    ANR for ex: if You are downloading huge amount data in ui thread, meny other possibilities like insufficient memory etc it will come.. probably it leads to crashes in android , We can't say both are same one follows other

    0 讨论(0)
  • 2020-12-07 23:36

    ANR stands for Application Not Responding and its occurs when long operation takes place into Main thread......

    Crash are due to exception and error like Nullpoint,

    0 讨论(0)
  • 2020-12-07 23:36

    This is good article at developer portal. It gives clarity in detail about ANR. https://developer.android.com/training/articles/perf-anr.html

    0 讨论(0)
  • 2020-12-07 23:37

    ANR (Application Not Responding )is due to handling long running task in Main Thread(UI thread).If the main thread is stopped for more than 5 sec you get ANR.

    Crash are due to exception and error like Nullpoint,classNotfound, typecast ,parse error etc. ANR also causes crash of application.

    Note: Never run long running task on UI thread

    Reference ANR

    0 讨论(0)
  • 2020-12-07 23:38

    ANR stands for Application Not Responding, which means that your app does not register events on the UI Thread anymore because a long running operation is executed there

    0 讨论(0)
提交回复
热议问题