StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();

12,189

StrictMode is a developer tool which detects things you might be doing by accident and brings them to your attention so you can fix them. StrictMode is most commonly used to catch accidental disk or network access on the application's main thread, where UI operations are received and animations take place

and more information read this

Share:
12,189
user3635977
Author by

user3635977

Updated on July 11, 2022

Comments

  • user3635977
    user3635977 almost 2 years
    StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
    

    I want to know about it.

    How it can work ?

    • W.M.
      W.M. over 2 years
      I have noticed that this piece of code makes my application run faster. Any idea why is that?