android.os.NetworkOnMainThreadException even though I set target SDK to android 1.6
<p>I have an android project that is set to run on android 3.2, and I have a library project that uses networking in its main thread, which by sdk version of 3,2 throws android.os.NetworkOnMainThreadException. By SDK version below Honeycomb using network in main thread is ok: <a href="http://developer.android.com/reference/android/os/NetworkOnMainThreadException.html" rel="nofollow">http://developer.android.com/reference/android/os/NetworkOnMainThreadException.html</a>. </p>

<p>To solve this problem, I tried setting my library project's SDK version to 1.6, however the same error is still there! Is this normal behavior of Android? Isn't it wrong? What about backward compatibility? </p>

<p>Edit: I know that I should not perform a network request in main thread, however its not my code that does it, but the library that I have to use. I cannot/would not like to touch the code of the library, its a commercial API that belongs to other company. </p>

<p>Edit 2: I am of course trying to get a newer/fixed version of that library, but that is another issue. So my question now is, is there a way to compile/run the library with an older SDK? </p>
