Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Exception sending message to a Handler on a dead thread in SycnHttpClient #421
I am using SyncHttpClient to make synchronous requests from an IntentService. Here is the sample code-
After making the request, I expect the onSuccess or onFailure to be called. Instead, I get the following exception-
What's the correct way to make synchronous requests?
This is already fixed, I've also added example of SyncHttpClient, see: https://github.com/loopj/android-async-http/blob/master/sample/src/main/java/com/loopj/android/http/sample/SynchronousClientSample.java
Not IntentService, but it is not different, for Service