Description
I'm using AsyncHttpClient in a large Android project-- it works great in most cases, except when we need to make network calls from an Intent Service.
In this case-- we actually need to make a synchronous network call but the library doesn't make it easy to do that.
Also, we use session cookies with our AsyncHttpClient-- we create a static AsyncHttpClient instance and it's used throughout the project, and since we have a session cookie, this is preserved.
So I guess there are two potential solutions:
-
Need a way to create a SyncHttpClient from an instance of AsyncHttpClient so session cookies are preserved
-
Need a way to reliably use AsyncHttpClient in an IntentService
I know some other people have had issues with using this library in an IntentService-- how have you solved it?