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
Post a Comment