android - Is "ANR" an exception or an error or what? -


is anr exception, error or what? can catch in try{} catch(){} structure?

anr (application not responding) not error. shown when application sluggish , takes lot of time respond, making user wait. user won't appreciate if application makes them wait long time. so, android framework gives user option of closing application. http://developer.android.com/guide/practices/design/responsiveness.html

this occurs when doing long running operations on main thread. system can't process user interactions during period since main thread blocked. solution heavy operations in worker thread , keep main thread free.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -