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

Multipart image upload in Android - porting an app to Android from iOS which used AFNetworking

Im struggling to find a solution or library with good documentation describing how to submit a multipart image to a server. I had a look at loopJ, which I think is very promising however I am still unsure what the best solution is. It would be great…
DevC
  • 6,982
  • 9
  • 45
  • 80
1
vote
0 answers

Android SmartImageView image not loading

I'm using SmartImageView in my layout and setting the URL as below header.setImageUrl(welcomeScreen._headerImageUri, new SmartImageTask.OnCompleteListener() { @Override public void onComplete() { int height = 0; if…
LoveMeSomeFood
  • 3,137
  • 7
  • 30
  • 53
1
vote
1 answer

android-async-http loopj set saving path for downloading file

Please tell me how set saving path for downloading file. For example: AsyncHttpClient client = new AsyncHttpClient(); String[] allowedTypes = new String[] { "image/png" }; client.get("http://www.example.com/image.png", new…
Kozlov V
  • 146
  • 5
  • 17
1
vote
2 answers

Android Asynchronous Http Client : @Override onSuccess(int statusCode, Header[] headers, String content)

I'm trying to get cookie from server response (from Headers). I built library from source : https://github.com/loopj/android-async-http and add it to my project. Here i try to override metod client.post(context, link, requestEntity, contentType,…
Stryzhevskyi
  • 121
  • 6
1
vote
1 answer

Bad Request when trying to connect to ISS 7 Express from android emulator

In my IIS i have created Web Api and it's Project Url is http://localhost:54444. I am albe to connect to this Url from my browser in Windows8, however I am not able to do so in my android emulator browser via http://10.0.2.2:54444. My android…
Michal
  • 11
  • 1
  • 4
1
vote
2 answers

Android: Loopj AsyncHttpClient Get HTTP Error Code

I'm using Loopj's AsyncHttpClient to do http requests with JSON data. Now I need to get the http error code that is returned from the server. Where can I find that? The handler that I pass looks like this: new JsonHttpResponseHandler() { …
DominicM
  • 2,186
  • 5
  • 24
  • 42
1
vote
0 answers

Posting image as Base64 string using loopJ Asynchronous Http Client

Hello i am using loopJ Asynchronous Http Client for posting values to a webservice. The problem i am facing is. I encode my Bitmap to Base64 String and use this string as a parameter for the webservice. I always get the ClientProtocolException and…
Hasham
  • 455
  • 4
  • 11
1
vote
1 answer

Android - How to accommodate a thread executing in AsyncTask doInBackground method

I am trying to query a web service using loopJ and during this operation I want to show the users a progress dialog. When the operation is complete, I want the progress dialog to dismiss and start a new activity intent. I know AsyncTask is the way…
CLDev
  • 1,076
  • 3
  • 12
  • 20
1
vote
2 answers

Android loopj: Post data

I'm using loopj to post some data. It all works fine but I have some problems: What is a good way to handle the case where no internet connection is available? At the moment I just retry after some time but like this, I have to store the data…
DominicM
  • 2,186
  • 5
  • 24
  • 42
1
vote
1 answer

How do I get the Throwable (error) at android-async-http from loopj?

I am using the (I guess) quite popular library from LoopJ (https://github.com/loopj/android-async-http) to make GET and POST requests. Everything if working fine, but when it comes to cookie-handling I got some errors. Occasionally the POST-Login…
nodepond
  • 501
  • 6
  • 24
1
vote
1 answer

Encrypting parameters POST request with LoopJ

I submitted an App to the Amazon App store, but it was rejected because of this issue: This app appears to be sending unencrypted, sensitive information. In this instance, the E-MAIL and PASSWORD is being sent in clear text. Please update the app…
android_student
  • 1,246
  • 1
  • 13
  • 32
0
votes
0 answers

Loopj, how to send body in POST?

I'm trying to write a client that uses POST to communicate with an API. My problem is that I have to send with JSON in the request-body. I've googled but can't find anything that works. I've tried specifying key="body" with value="json-string" - but…
user2734182
  • 1,835
  • 4
  • 17
  • 22
0
votes
0 answers

Error using older networing lib com.loopj.android.http.AsyncHttpClient - verifier rejected class can't resolve returned type

I am making some updates to a legacy app that uses a dated networking library - unfortunately replacing this lib isn't possible at this point in time so I'm trying to get it working in it's current form for the time being. The error occurs when…
0
votes
0 answers

What is a good way to set up an http client in Android Studio?

I am working with Android code that was written around 2017. The person who worked on it was using loopj. These are the imports he was using to make http requests to the backend Python server: import com.loopj.android.http.AsyncHttpClient; import…
user15155006
0
votes
1 answer

httpclient.client.HttpResponseException: Too Many Requests

I created an app that reads data from Google Books API and display it in a recyclerView. Sometimes the items in the recyclerView wont show. In my log I get the following (it is not an error that crashes my app but it shows it): V/AsyncHttpRH:…
Ben
  • 1,737
  • 2
  • 30
  • 61