android.os.NetworkOnMainThreadException - Android



안드로이드의 httpPost 처리

(HttpResponse httpResponse = httpclient.execute(httpPost);​)

중에 

android.os.NetworkOnMainThreadException 오류가 나온다.

 

Why??

http://stackoverflow.com/questions/9413625/android-android-os-networkonmainthreadexception

 

NetworkOnMainThreadException: The exception that is thrown when an application attempts to perform a networking operation on its main thread.

 

즉, 저놈은, HttpAsyncTask 놈 만들어서 처리해야 한다. 







AD_1