error handling - What is the exact use of Strict mode Thread policy in android? -



error handling - What is the exact use of Strict mode Thread policy in android? -

does strict mode thread policy class help manage/handle errors?

if type of errors?

strictmode developer tool detects things might doing accident , brings them attending can prepare them.

warning: don't utilize strict mode hack network operations on main thread since block ui thread. very bad practice. strict mode help grab "accidental programming" developers

strictmode commonly used grab accidental disk or network access on application's main thread, ui operations received , animations take place. keeping disk , network operations off main thread makes much smoother, more responsive applications. keeping application's main thread responsive, prevent anr dialogs beingness shown users.

so can utilize strictmode grab disk/network access without crashing app. careful turn off when launching yout app on gp.

android error-handling

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -