multithreading - Android Networkonmainthreadexception even though it's in a thread -
i can't post code here because i've tried zillion ways. allow me preface saying i've used threads (usually thread class runnable) lots of times in android no problem.
in situation, i'm trying create socket connection, , know network operations have done in threads. however, whether utilize thread class, runnable, asynctask, or whatever (haven't tried callable yet), , thread gets created , executed, when hits line create new socket connection throws networkonmainthreadexception, though it's in thread, , (in lastly try) asynctask @ that. missing create happy?
android multithreading sockets android-asynctask
No comments:
Post a Comment