What is the difference between ANR and crash in Android?

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

提交回复
热议问题