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

Can't download image (status=400) (not related to SSL or User-Agent)

I am trying to download an image from Java code. My code is already working fine for tons of other images, but this one refuses to download. I'm sure the image exists and I am able to view it inside the browser:…
Sebastien Lorber
  • 89,644
  • 67
  • 288
  • 419
0
votes
1 answer

AsyncHttpClient LoopJ and preserving data from onSuccess method

I have this method called "invokeWS". All I want to is to do is to update an ArrayAdapter adapter2 I use in my app with the listdata ArrayList that gets data from a JSON file. I tried different things. The onSuccess is void, so I cannot return…
0
votes
1 answer

Android AsyncHttpClient onSuccess() with global arrayList

I have a global arrayList which I am using for showing android cardViews ArrayList listTransactions; When using listTransactions.add inside onSuccess of AsyncHttpClient it works fine, but out of onSuccess function (inside…
wkh
  • 35
  • 1
  • 4
0
votes
0 answers

Is it possible to send JSONArray as input parmater in android?

I tried Volley, Httpclient, AsyncHttpclient and Retrofit. Pojo is not generated for JsonArray to request via Retrofit . Pojo is created when the json array is inserted into a json object with some name. That means Parent needs to be JSONObject Using…
0
votes
0 answers

Persistent Unknown Host Exception When using Apache Http Client

I'm currently using localhost to develop mobile apps in android studio while connecting via a USB cable. I set up the localhost environment using this method https://stackoverflow.com/a/26539795/4681900 and got it to work on an IP address. The…
0
votes
1 answer

Implement Basic HttpClient Post with Loopj on Android

I am new to Android programming and am having some difficulty implementing a basic version of a message sender using the Loopj library. Here is my code: package com.test.app; import android.support.v7.app.AppCompatActivity; import…
0
votes
1 answer

tornado AsyncHTTPClient dynamic add http_client.fetch to list

here is the code class GetdataHandler(tornado.web.RequestHandler): @tornado.web.asynchronous @tornado.gen.engine def get(self): http_client = tornado.httpclient.AsyncHTTPClient() response1, response2, response3,…
0
votes
0 answers

Android Java - How do i get real file (image and video) path and upload with AsyncHttp to the server

i have a project which i need to allow users upload images and video to the server... currently users can select image and video.. but i don't know how to get the real file path then upload by using AsyncHttp Post... this is my code to select image…
0
votes
1 answer

Retrofit2, AsyncHTTPClient - Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

I know json object starts with { string starts with ". I checked multiple times, data types of each and every field are matching with json response. I tried same code with Retrofit Async HTTP Client I failed in both cases. I also checked multiple…
Paritosh
  • 2,097
  • 3
  • 30
  • 42
0
votes
2 answers

I can populate my spinner with my database but I can't show the selected item

I'm working on a little project in android studio and I have a problem, I'm using an ArrayAdapter to catch information from a JSON code and now I can display the data but when I select an item it doesn't show in the display of the spinner, I hope…
0
votes
2 answers

Failing to make call to API from android client

I have a flask RESTFUL API which is fully functioning and deployed to heroku. I now need to make a get request from my android app. I am using the library to do this. Here is the code which makes the call to the API at the url…
Tom Finet
  • 2,056
  • 6
  • 30
  • 54
0
votes
1 answer

Parsing JSON in Android using AsyncHttpClient

I need to parse my JSON to my Android application, I’m getting an error: org.json.array cannot be converted to jsonobject What I want to do is to take the json from my server and parse it into the textviews that i had made I’m using…
0
votes
0 answers

Java async-http-client difficulties installng

I am trying to follow the directions for setting up this async-http-client Here. According to the readme, I can either add the dependancy to my maven project .pom file(which I don't want because I did not create a maven project), or I can use the…
Miek
  • 1,127
  • 4
  • 20
  • 35
0
votes
1 answer

Overwriting the JsonHttpResponseHandler class to add a param pass to onSuccess

OK i am not sure if i am asking the right question, but this is the only way i can think of to fix my problem. I have to call an API to get information that needs to be used inside of this method. public void setBuses(JSONArray theBuses) { …
0
votes
1 answer

How to get data from MongoDB with Android AsyncHttpClient

Background: I'm working on an Android project that was handed off to me and there are some things I'm still trying to learn. The people on the project before me left no documentation, so forgive me. Question: Basically I want to know how to get data…
Justin
  • 315
  • 2
  • 4
  • 18