0

I am getting an exception (android.os.NetworkOnMainThreadException) when using Handler handler = new Handler(Looper.getMainLooper()); handler.post(runnable);. The runnable includes a network call (closing a socket). What is the difference between handler and an async handler? not sure if that could be handy here.

ngaspama
  • 371
  • 4
  • 10

0 Answers0