Android Networkonmainthreadexception Inside Of Asynctask
I have a problem on ICS when I try to use google calendar api. To get a list of events, I have a AsyncTask and inside doInBackground() I make the service calls but still I receive
Solution 1:
It seems the problem was in the manifest.. I had this attribute in the uses-sdk tag:
android:targetSdkVersion="10"
After I removed this attribute, the app worked.
Solution 2:
Are you testing this on the emulator? For some reason I have the same issue when testing on the emulator while streaming a .mpjeg within AsyncTask; however when I test it on a device it works fine.
It may be an emulator issue; however it could also be something with ICS (I emulator 4.0.3 but run 2.3.7 CM7b257 on my phone) but give it a try as that could very well be your issue.
Post a Comment for "Android Networkonmainthreadexception Inside Of Asynctask"