Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dante-byte/0f9cb9e0af8703773f6c2ce02a21bdbb to your computer and use it in GitHub Desktop.
Save dante-byte/0f9cb9e0af8703773f6c2ce02a21bdbb to your computer and use it in GitHub Desktop.
protected void onCreate(Bundle savedInstanceState) {
...
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment