-
Notifications
You must be signed in to change notification settings - Fork 4.1k
1.4.5 Regression in AsynHttpResponseHandler (bug ?) #633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That was not an error, it was a warning. And if when you add a The difference between 1.4.4 and 1.4.5 is simple: in prior versions, AHC automatically created the looper when it didn't exist, which was alright in situations but not alright in other situations. So we removed it and now the developer needs to prepare a looper beforehand. |
@neoteknic if you add |
it's very weird to call a async http lib API in an async thread.... |
@lbt05 yes, that is not the way the library is meant to be used, however it fits someones needs, so we'd like to support them. |
Hello, |
@neoteknic can you post the stacktraces? |
I will try to revert to my previous code to do that. |
If you still suffer from the issue, send back the stacktraces. See this example of running requests in background thread: |
I want an Async request. Do I neet to use IntentService? Can't I make it to something closer to previous versions of loopj? error log: My code runs on Main Thread:
|
Hello,
I don't understand something about the new 1.4.5 version, the previous one 1.4.4 was wordking fine !
With the new API I just changed the onSucces (previously onSuccess(String response), now with 3 parameters
I Have a class:
Now I have error : current thead has not called Looper.prepare() Forcing synchronous mode;
Tried to add Looper.prepare in the construcor but crash the app.
and another error Synchronous ResponsHangdler in AsyncHttpClient.
Maybe the fix is just to remove the check for Looper.prepare==null ?
I dont really undestand this but.
I think it's related to this change : Fixed Threading issue when used in Service or non-UI Thread context
Because I use it in a thread. But can you add an optino to force async mode, or should I use sync mode ?
The text was updated successfully, but these errors were encountered: