Questions tagged [asynchttpclient]

Asynchronous HTTP client library for Java

See the GitHub repo for more information. In essence:

AsyncHttpClient allows Java applications to easily execute HTTP requests and asynchronously process the HTTP responses. Feature-packed, wicked fast, and actively maintained.

323 questions
0
votes
1 answer

Slow in writing data from webserver to Local DB in Android

I am trying to pull data from my webserver and add them to Local DB in background using a service.. Data is getting stored to Local DB without any issues but while this is happening the phone becomes slow (there is some dragging). Just wondering if…
user5287166
  • 223
  • 1
  • 2
  • 15
0
votes
2 answers

NullPointerException with bundle and AsyncHttpTask

In my Android app I have a messages activity that is composed by three tabs (fragments: inbox, sent and deleted). I need to load data (received in JSON format and converted to String) in both tabs, but when I load the fragments app throws…
Angel F.
  • 176
  • 1
  • 16
0
votes
1 answer

HttpAsyncClient isn't making request if setConnectionManagerShared is set to true

For some reason HttpAsyncClient isn't making request if setConnectionManagerShared is set to true. I found this bug but couldn't figure out what I'm missing. Here is how I create new client def apply(proxy: Option[HttpHost], cookieStore:…
0
votes
1 answer

POST parameter to php using AsyncHttpClient

I want to delete a row from my database using MySQL. I need to pass the parameter I want to delete from my Android app to the php script. I am using AsyncHttpClient but nothings happens, I get an OK message in my log. I have tried changing the value…
0
votes
2 answers

Android POST request to Restify server

I have this server code running on Node JS. function onTransactionStart(req, res, next){ var transaction = {}; var quantity = {}; console.log(req); var obj=req.query; generateToken(8); console.log(token); transaction._id = token; …
Abhishek Dey
  • 1,601
  • 1
  • 15
  • 38
0
votes
2 answers

Java.io.File - Cannot rename and move file on Android

I can't rename/move my temporary file and open it Here is the code I used to create the temporary file @Override public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) { //[...] java.io.File tempFile =…
Kevin Machado
  • 4,141
  • 3
  • 29
  • 54
0
votes
1 answer

Configuring Braintree

I am trying to accept BrainTree on my app. I don't understand the Async HTTP Client part. Where do I place this in my app? Currently, I have it in the MainActivity and it is giving me errors for 'get', 'TextHttpResponseHandler' as well as…
Alex
  • 69
  • 5
0
votes
1 answer

AsyncHttpClient Connection Timeout not working

I'm using AsyncHttpClient to make HTTP request through proxy server, but seems connect timeout not working, even if I configured it to be 65 seconds (proxies can work very slow). I'm receiving java.util.concurrent.ExecutionException backed by…
WelcomeTo
  • 19,843
  • 53
  • 170
  • 286
0
votes
0 answers

download a file which is coming from a rest webservice in Android app

How to receive the file coming from web service in Android? Web Service code : private static final String FILE_PATH = "D:\\visitorHistory.csv"; @GET @Path("/exportCsv") @Produces("application/octet-stream") public Response downloadFile() { File…
0
votes
1 answer

Any client library that can tell how long the request took?

Is there any http-client library for scala that can tell how long time a request took?
FelixHJ
  • 1,071
  • 3
  • 12
  • 26
0
votes
2 answers

Send Image from android to Node.js using AsyncHttpClient

I'd like to send image from android app to node.js server to save into MongoDB on server side. I use AsyncHttpClient to post request. My code is like this: Android -> RequestParams param = new RequestParams(); param.put("email",…
0
votes
1 answer

Android Volley onSending

On Andriod, I'm trying to change the framework from AsyncHttpClient to Volley. There's a call back method onStart in AsyncHttpClient which helps me do something before I receive the response from the server. (Such as notifying the user to wait.) I'd…
53iScott
  • 827
  • 1
  • 13
  • 18
0
votes
1 answer

Android: Service to communicate with server API

I'm using AsyncHTTPClient to communicate with my server API. I've read that I have to use services to communicate with a server. 1) Is AsyncHTTPClient already a service? Or do I still need to put all methods which use AsyncHTTPClient into my own…
Roman
  • 3,799
  • 4
  • 30
  • 41
0
votes
2 answers

java.lang.NullPointerException when POST with AsyncHttpClient

I have an endpoint /test which expects Map : @POST("/hello") @PermitAll public JSONObject test(Map param) throws JsonParseException { String elementName = param.get("name").toString(); String elem = param.get("elem").toString(); …
AJ-B29
  • 215
  • 1
  • 11
0
votes
1 answer

asynchttpclient OnSuccess method gives response after activity is finished

I am facing some difficulty in my code. I am initializing my drawer from json response, but my 'OnSuccess' method gives response when my activity gets over. also if I initialized arraylist in OnSuccess It still gives empty in OnCreate method…
Akshay Shinde
  • 945
  • 10
  • 23