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: http://developer.android.com/reference/android/os/NetworkOnMainThreadException.html.
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?
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.
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?