Main 에서 네트워크 작업을 수행하면 안됨 !! AsyncTask 를 사용하여 작업을 수행해야 됨


This exception is thrown when an application attempts to perform a networking operation on its main thread. Run your code in AsyncTask:


출처 :

http://stackoverflow.com/questions/6343166/how-to-fix-android-os-networkonmainthreadexception




+ Recent posts