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

Request entity is too large with httppost

I am sending string of json object of more than 1000 user profile records. And the server sends me this error: 413 Request Entity Too Large

413 Request Entity Too Large

naran zala
  • 141
  • 1
  • 6
0
votes
1 answer

jquery tokeninput uncommon parameters sent, not working anymore in rails 3.2.13

I know tokeninput isn't made for rails specifically, but after upgrading from 3.2 to 3.2.12 it doesn't work anymore. It doesn't get the results. All I have as a clue are 2 parameters that weren't sent in the older version of rails: Started GET…
0
votes
1 answer

why Loopj library works fine on the android emulator and doesn't run on real device?

I use this library (http://loopj.com/android-async-http/) to download a json from my website, in the emulator works fine but when I try in a real device does not work (tablet and smartphone) it doesn't enter in the function onSuccess. Someone can…
Pierminator
  • 93
  • 2
  • 12
0
votes
1 answer

Response string is blank in loopj for Android

Here is the code that I have used for Async Http requests using loopj. AsyncHttpClient loopjClient = new AsyncHttpClient(); PersistentCookieStore loopjCookieStore = new PersistentCookieStore(this); …
rahulg
  • 2,183
  • 3
  • 33
  • 47
0
votes
3 answers

Displaying Notification after Background Process done Android

I am loading an HTTP request in the background using loopj HTTP CLIENT and when it is done, I want to display a "success" notification (dialog, toast, etc.) I have the code in a seperate (non-activity) class with a static method that executes the…
Kgrover
  • 2,106
  • 2
  • 36
  • 54
0
votes
1 answer

loopj infinite loop when host not found

I am trying to make use of loopj's Async HTTP library, but I encountered quite critical problem. When I am making a request to a host that does not exist it goes into infinite loop. I tried debugging the code, but I didn't find…
BartoszCichecki
  • 2,227
  • 4
  • 28
  • 41
0
votes
0 answers

Rails autocomplete jquery using loopj tokenizer

I found the following plugin very useful but for the life of me I can't figure out how to put the submit button and the text_field on the same line. http://loopj.com/jquery-tokeninput/ here's the code that I have below: .row{style:…
locoboy
  • 38,002
  • 70
  • 184
  • 260
0
votes
0 answers

modify css but It does not handle events

I am using a search bar that has token auto-complete, the well known loopj :-). Even though I have set up the form fields correctly, they only react to event handling coded in loopj and to the css modifications done in my custom js file(presented…
Potney Switters
  • 2,902
  • 4
  • 33
  • 51
-1
votes
2 answers

Java: Accessing a String outside of a function

I am a hobby programmer and am trying to access returnJson outside of the onSuccess function. Inside of the function, I can see that it returns as expected. Could somebody explain why I cannot view it outside and what I can do to make it accessible…
AWippler
  • 417
  • 3
  • 9
  • 16
-1
votes
1 answer

loopj http library on Android : callback when activity is in background

Neither the documentation, nor stackoverflow has an answer to the below question. I am using loopj library for HTTP Get requests in my Android App. In my onSuccess() callback, I am updating a TextView with the results. I was curious as to what…
-2
votes
2 answers

Android: JSON object getString

I use this JSON https://api.github.com/users I need to get string name, followers, following, and more. But on the program says "No value for name". I think I need to go to a specific user example: https://api.github.com/users/mojombo to getting…
-2
votes
1 answer

Use AsyncHttpClient post request with loopj library on using Token Based Authentication

I am getting response in Postman with same url and token. I am sure that there is issue in Passing token with Post Request. Can anyone help me?
Pratik Sule
  • 163
  • 4
  • 18
-3
votes
1 answer

Unknow Hostname Exception. loopj library

Well i am using the loopj library for uploading mulitple form data, but the problem is it is giving me java.io.UnknownHost Exception, although i tried the same query with postman and it submitted the data successfully. please kindly help me go…
Manzoor Ahmad
  • 481
  • 6
  • 21
-3
votes
1 answer

stop UI thread until http responses

I need to get data from a server via a php script I'm using an AsyncHttpClient and an AsyncHttpResponseHandler from the loopj library. public void buttonListener (View view) { if (view.getId() == R.id.button) { //start loading... …
sith
  • 7
-5
votes
2 answers

How to use inner class variable in whole class

I have a method like this to get firstname from webservices using loopj. private void getfirstName() { List
headers = new ArrayList
(); headers.add(new BasicHeader("Accept", "application/json")); …
user3785322
  • 153
  • 1
  • 6
  • 15
1 2 3
15
16