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

how to move StrictMode.ThreadPolicy.Builder to AsyncTask or to an IntentService?? if Intent mean it would be much helpful.

Raj Kumar
  • 583
  • 2
  • 5
  • 9

1 Answers1

0

StrictMode.ThreadPolicy this way for debug mode only. Use it in AsyncTask.

Android Android
  • 724
  • 1
  • 7
  • 20