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
0
votes
1 answer

android print "connection timeout" when timeout in loopj

android I finding more but none of get solution.. when occur time out in loopj , I want print Time-out message.. Follow code for time-out which I used. private static final int DEFAULT_TIMEOUT = 15 * 1000; private static AsyncHttpClient client =…
Manish
  • 67
  • 8
0
votes
1 answer

loopj onProgress missing

Using loopJ for the first time. Pretty nice. However, I see posts describing the @Override onProgress(). However, it does not seem to be available any longer? I see the V/AsynchHttoPH Progress xx% in the debugger so the data is there someplace. How…
IrvineCAGuy
  • 211
  • 2
  • 12
0
votes
1 answer

Loopj's onFailure is called with null response

I am using loopj for android to talk to my server. One of my requests takes a long time so I am using setTimeout(30) for the AsyncClient. However, loopj is always firing onFailure with null response. The weird thing is that the server keeps running…
Pacemaker
  • 1,117
  • 2
  • 17
  • 36
0
votes
1 answer

Reverse proxified request return null in onSuccess in loopj.AsyncHttp

I have to use an restful API for my app in android, In this API we have to reverse proxy our app requests through our server( I use nginx proxy_pass for that), since the API only answers to one registered IP. When I use curl to send a request…
FazeL
  • 916
  • 2
  • 13
  • 30
0
votes
0 answers

Data has been sent via a http request client loopj but unable to retrieve using php

I know for a fact the data I am sending in this is getting sent unlike my previous question where an exception was being thrown. I can successfully execute a request object using loopj async http client however i am unable to get my data from the…
CodeLover
  • 61
  • 7
0
votes
3 answers

Get notified when multiple AsyncHttpClient requests complete

I'm using Loopj's android asynchronous http client. What I have is a for loop which creates multiple asynchronous http requests to a web service. Is there a way I'll get notified when all of them finish ?
vicolored
  • 815
  • 2
  • 10
  • 20
0
votes
2 answers

UI blocking on sending another request in Child Fragment

I have been using loopj library to interact with my server. I have created a view pager inside a fragment and thus created child fragments In these child fragment when I send a request to the server I get correct response. The problem arises when I…
0
votes
2 answers

How to use AsyncHttpClient post request with loopj library on using Token Based Authentication

I am using Token Based Authentication on my project to control login authentication. My Token Based Authentication requires: Header: Accept Value: application/json Header: Content-Type Value:…
0
votes
1 answer

uploading image from android through WP REST API

I have a following image upload api which works fine. CURL --user username:password -X POST -H 'Content-Disposition: filename=scarlett-judinna.jpg' --data-binary @'/Volumes/Work/tmp/Dummy Images/image.jpg' http://example.com/wp-json/wp/v2/media Now…
Sangharsha
  • 88
  • 11
0
votes
1 answer

Last.FM API in Android Studio 404 error

I'm attempting to use the last.fm API (http://www.last.fm/api/mobileauth) restful using Android Studio and the Loopj Android AsyncHttpClient plugin (http://loopj.com/android-async-http/) but I keep getting a 404 error, but can't see why. Code below.…
0
votes
1 answer

LoopJ asynchron Http client loopj Scheduler to repeat client.get onFailure()

I am using the Asynchronous Http Client of the LoopJ Library. I want it to become more robust, so if there is a Onfailure , the Params get saved and tried again later in a interval for example 1 hour. Now my question is, is there a possibility to…
O.Bey
  • 29
  • 7
0
votes
1 answer

Server's JSON response might be invalid

I get stuck for this, I don't understand where the problem from. The API was tested Success with Postman, but failure on my app. My code is: public void invokeWS(RequestParams params) { // Show Progress Dialog prgDialog.show(); // Make…
cevysays
  • 33
  • 4
0
votes
0 answers

Using a library in an SDK and my own project

I'm using an SDK in my project which is using loopj and importing it through it's own gradle file with compile 'com.loopj.android:android-async-http:1.4.9'. I'm also using loopj and importing it through my apps gradle file with compile…
dabo248
  • 3,367
  • 4
  • 27
  • 37
0
votes
1 answer

Android Networking Libraries: LoopJ, Retrofit

Whats is the difference between LoopJ and Retrofit? For a small chat app Should I use Loopj or Retrofit? (Why)
Jehad
  • 472
  • 2
  • 10
  • 24
0
votes
3 answers

Response goes to onFailure method while Parsing JSON data in Android

I am Using Loopj library to parse json data in my android application but every time response goes in onFailure. W/JsonHttpRH: onFailure(int, Header[], String, Throwable) was not overriden, but callback was received W/JsonHttpRH: …
Pratik Sule
  • 163
  • 4
  • 18