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
2
votes
0 answers

android app crashed while initiating lopoj AsyncHttpClient in Main activity

I need to get some data from external server in an android app. for that i use com.loopj.android:android-async-http:1.4.9 But my app crashed while initiating client in MainActivity private MyClient client; protected void onCreate(Bundle…
Forhad
  • 21
  • 5
2
votes
1 answer

Basic authentication Https SSL Android, loopj library

I can not pass authentication in HTTPS using loopj Asnctask Http library. How can you implement it and what else do I need to add to my code. My code: @Override protected void onCreate(Bundle savedInstanceState)…
Stive
  • 21
  • 3
2
votes
2 answers

How to add header to loopj POST

I am trying to POST a data from android to restful webservices using loopj.Web services is working fine with POSTMAN testing. When i try to post its failing and i get following message in…
user3785322
  • 153
  • 1
  • 6
  • 15
2
votes
0 answers

Android Asynchronous http for network call issue with 4.4,4.2

android-async-http An Asynchronous HTTP Library for Android https://github.com/loopj/android-async-http I am using asynchronous http for network calls. Lollipop and above Lollipop it's working perfectly. But below this version my code gives below…
Visal Varghese
  • 436
  • 5
  • 14
2
votes
1 answer

Android : cz.msebera.android.httpclient.Header is not importing

I am trying call an API by using loopj library.Because I want to totally avoid org.apache.http.legacy method for calling API. So I add the dependency for the loopj and build the project compile 'com.loopj.android:android-async-http:1.4.9' loopj is…
Binil Surendran
  • 2,524
  • 6
  • 35
  • 58
2
votes
1 answer

android - loopj: User-space exception

I encountered such a problem. I am use loopj in my android project. 02-26 15:57:38.247: E/AsyncHttpRH(2661): User-space exception detected! 02-26 15:57:38.247: E/AsyncHttpRH(2661): java.lang.NullPointerException 02-26 15:57:38.247:…
Cenk Gün
  • 21
  • 1
  • 3
2
votes
3 answers

LoopJ Header[] error

I'm trying to use LoopJ but it gives me an error on the Header[] params like on the image below. It say that I need to import the Header package but when I do it it gives me another error on FileAsyncHttpResponseHandler. AsyncHttpClient client = new…
ToniApps
  • 88
  • 1
  • 11
2
votes
2 answers

Android: Stream a large JSON Array produced from loopj's AsyncHttpClient

This is my first question, I hope I didn't make any mistake.. I got a nasty long json array from from the returning value of 'onSuccess()' in this format: [ { "label1":"value1", "label2":"value2", "label3":"value3", .... …
izariel
  • 23
  • 4
2
votes
1 answer

Loopj AsyncHttpClient - control views on handler inside ArrayAdapter

I'm using AsyncHttpClient of loopj to get image file from the internet and display it on typical image view. I found the convenient handler named FileAsyncHttpClient and I've checked following simple code works as well as I expected. public class…
Analysis
  • 23
  • 3
2
votes
1 answer

How to correctly bundle 3rd-party-libraries into library projects for .jar creation?

I'm trying to build an SDK library (.jar) that developers can include in their projects. The library project will use the loopj network 3rd party library to achieve network functionality. So, I need to bundle a library (loopj) into another library…
eric
  • 4,863
  • 11
  • 41
  • 55
2
votes
0 answers

SyncHttpClient and AsyncHttpClient

I would like to know why I can successfully upload a file to a server using AsyncHttpClient but not when using SyncHttpClient. The following setting yields successful result: MultipartEntityBuilder to build my multipart upload request +…
Jonas
  • 534
  • 8
  • 16
2
votes
1 answer

How to wait for two Async HTTP request complete with loopj HTTP library

My case is that I need to get two sets of data from sever with two HTTP get request, then process them together. I'm using loopj's http library to do the task. The problem is that since loopj's http is Async, which means I can't determine when they…
Arthur Wang
  • 3,118
  • 4
  • 21
  • 29
2
votes
0 answers

How to pause and resume download on Android loopj AsyncHttp library?

What is the best way of implement a download manager with loopj AsyncHttp android library? The main use case I interested is a pause and resume individual binary downloads. Regards.
Mou
  • 2,027
  • 1
  • 18
  • 29
2
votes
0 answers

Share cookies between Loopj AsyncHttpClient and WebClient

I've been unsuccessfully trying to do the following: Use loopj AsyncHttpClient to perform a request to a login page using a post request The login page logs the user in and responds with a session cookie later, on the same application, I create a…
Marco
  • 175
  • 2
  • 8
2
votes
1 answer

jQuery Tokeninput dropdown is under Colorbox window

I have got a problem with Loopj's jQuery Tokeninput inside Jack Moore's Colorbox window. The problem is that dropdown of Tokeninput shows under Colorbox window, as on screenshot below: I think that the problem could be with this code inside…
Hladeo
  • 577
  • 1
  • 7
  • 16
1 2
3
15 16