Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Using AsyncHttpClient from an IntentService #496

Closed
@suneets

Description

@suneets

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:

  1. Need a way to create a SyncHttpClient from an instance of AsyncHttpClient so session cookies are preserved

  2. 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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions