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
  • 321
  • 3
  • 8

0 Answers0