Câu hỏi phỏng vấn Android
Câu hỏi

What is the difference betwe...

Câu trả lời

The main difference between an ANR (Application Not Responding) and a crash in Android is:

  • ANR occurs when an app's main thread is blocked for too long, usually more than 5 seconds, preventing the system from receiving input events. This causes the system to display a dialog asking the user if they want to close the app. ANRs are often caused by performing long-running operations on the main thread, such as network requests or database queries[1][3].

  • A crash occurs when an app terminates unexpectedly due to an unhandled exception or signal. This can happen in any app component, even those running in the background. Crashes are often caused by issues like null pointer exceptions, illegal arguments passed to APIs, or complex multithreaded interactions[1][3].

In summary, an ANR is a responsive issue where the app becomes unresponsive to user input, while a...

senior

senior

Gợi ý câu hỏi phỏng vấn

junior

How do I pass data between Activities in Android application?

senior

Is a Dalvik virtual machine instance created for each application?

middle

What is the difference between Handler vs AsyncTask vs Thread ?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào