Questions tagged [loopj]

Use this tag for the HTTP Client for Android developed by James Smith, alias Loopj.

Loopj (loopj.com) is website and twitter handle of James Smith, a British entrepreneur and engineer based in San Francisco.

As a tag, it is mostly used for HTTP Client for Android developed by him.

http://loopj.com/android-async-http/

240 questions
1
vote
2 answers

Failcz.msebera.android.httpclient.client.HttpResponseException: Bad Request error while making HTTP request for weather app

I am using 'com.loopj.android:android-async-http:1.4.9' Library and trying to receive the weather data JSON object from the following URL http://api.openweathermap.org/data/2.5/weather and API key is hidden due to security reasons. public class…
1
vote
1 answer

how to read json response from php in android using asynchttp in android?

I'm making an program to post an array list to server which then parse the array list and store it in the data base but iam unable to read the response could somebody help me out as iam unable to fin the soultion Here is the android java code :- …
atul kumar
  • 55
  • 6
1
vote
0 answers

Loopj Async HTTP not using cookie store to set request header

I am trying to build an Android client that can authenticate with a Pyramid server that uses redis based sessions. I am trying to use Loopj's Async HTTP library for Android to handle networking. I am trying to implement the Persistent Cookie Storage…
wanderingProgrammer
  • 191
  • 1
  • 3
  • 19
1
vote
0 answers

android send file to jsp with loopj

I have managed to send files to jsp from html. html code is Insert title here

File Upload:

Select a file to upload:
1
vote
2 answers

handle timeout exception in loopj

I am having error in handling the timeout exception in asynchttpclient @Override public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) { closeProgressDialog(); Log.e("DB", String.valueOf(error)); …
rookieDeveloper
  • 2,459
  • 1
  • 22
  • 44
1
vote
2 answers

How to send parameters as Form parametrers instead of URL parameters with AsyncHttpClient in Android?

Currently I am creating parameters with: RequestParams params = new RequestParams(); params.put("Param1","Value1"); And then posting like this: AsyncHttpClient client = new AsyncHttpClient(); client.post(restApiUrl, params,…
The Cook
  • 1,403
  • 3
  • 17
  • 33
1
vote
2 answers

Android : java.lang.String cannot be converted to JSONArray

I am getting json Exception while trying to parse a string to jsonArray. I am using loopj method for json Parsing. This is the error : java.lang.String cannot be converted to JSONArray And this is the json I am trying to parse…
Binil Surendran
  • 2,524
  • 6
  • 35
  • 58
1
vote
1 answer

LoopJ AsyncHttp returns 404

Hi I've been using this free GIT library for some time now and I just experience a very very weird problem I have a URL (web API) that returns a JSON formatted data. Yes, it exist on browser I tried all main browser out there and it is showing. The…
ralphgabb
  • 10,298
  • 3
  • 47
  • 56
1
vote
0 answers

Single AsyncHttpClient instance ConnectTimeoutException

I use android-async-http in my project, and AsyncHttpClient static single instance, my code as follow step: HttpURLConnection http request; In first request success callback, use AsyncHttpClient to request another url; Get ConnectTimeoutException…
Brant
  • 221
  • 1
  • 3
  • 7
1
vote
0 answers

Connection error node.js server . Http request in android showing host not reachable

I am using loopj library for http request, And i am using genymotion for testing. I also want to test on my mobile device but it is showing host unreachable on each ip, whenever i call onclick function on button click. Here is the Code: public void…
user3151301
  • 39
  • 1
  • 8
1
vote
2 answers

(Android | Java) AndroidAsyncHttp (Loopj) to complete web request before proceeding thread

I'm currently requesting an JsonObject via AsyncHttpClient (loopj) web request, however the request is rather slow and I need the Object to proceed. Currently the program crashes as the object being saved is empty and the save function gets called…
Candiie
  • 23
  • 5
1
vote
1 answer

No response called. Nor succes nor failed in loopj

In loopj when i hit a URL nor onSuccess nor onFailure calling that's why my progressDiaog keep on running for infinite time.
anoop ghildiyal
  • 821
  • 10
  • 18
1
vote
0 answers

loopj multiple async requests not returning in signed APK

I have an app that requires a lot of async requests, for which I am using the loopj asynchttpclient library. After login to a service, many requests get made, someone loading 5-10 images at one time, and a couple JSON requests, all made around the…
nserror
  • 727
  • 8
  • 19
1
vote
1 answer

Webservice not receiving multipart PUT from android

I am trying to upload a PDF file to a web service through PUT. I achieve this on iOS through a multipart form request. However when I do the same from Android, the service returns 200 right away, and never actually gets the entire PUT and I cannot…
nserror
  • 727
  • 8
  • 19
1
vote
0 answers

Android Async Http Client - Getting POST Url

Im using the LoopJ - Async Http Client For Android to perform some async post requests to login to a website. Im using the AsyncHttpRequestHandlers to keep the process async and seperate from the Android UI thread. I want to get the page URL after…
Flemingjp
  • 139
  • 3
  • 14