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

Error:Execution failed for task ':app:dexDebug' after dependency is placed correctly

My studio keeps giving this error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java'' finished with non-zero exit…
1
vote
1 answer

JSON from restful web service

I created a restful web service in php using the slim framework. One of the functions returns a dynamically created multidimensional array and encodes it as a JSON array like this [{ "hid":100001, "SubTable":"grpsubs", …
cmb
  • 95
  • 3
  • 12
1
vote
0 answers

org.apache.http.header missing therefore loopj doesnt work

I am trying to use Loopj Async http request library. Header[] component from org.apache.http.Header is used, but it doesn't get recognized because Header doesnt exist inside org.apache.http package. I've tried adding these items to gradle build but…
Yagiz
  • 1,033
  • 2
  • 21
  • 47
1
vote
1 answer

LoopJ AndroidAsyncHttp Can't POST Image With Basic Auth

I am trying to upload an image to a PHP file on a server using the POST method. I have been trying to do this using LoopJ AndroidAsyncHttp with no success. The server also requires a basic auth username and password. So far, I have been able to…
Takide
  • 335
  • 3
  • 10
1
vote
2 answers

Android: What is the best HTTP library for files?

Hy guys! I am working on an android project(java) with another guy working on the server-side(php). In my application I need to call POST and GET methods in order to upload files to server, download files, send Strings, byte[] array etc. My…
Chris
  • 6,105
  • 6
  • 38
  • 55
1
vote
2 answers

Android : To upload an image using AsyncHttp POST

I am having a camera intent activity , I am trying to POST an image selected by the user , to the server. But every time it is giving me Java SSL Socket Exception . Below is the method which i have tried to implement for uploading the image to the…
Akshay Shah
  • 490
  • 1
  • 9
  • 25
1
vote
0 answers

Android Asynchronous Http Client "Invalid cookie header" Error

I am trying to use a HTTP POST request for the login, the server response is Ok but in the log there are multiple entries like this: W/ResponseProcessCookies﹕ Invalid cookie header: "Set-Cookie:…
1
vote
2 answers

How to support Comodo SSL cert in loopj on Android?

I'm running a site using HTTPS with an SSL cert from Comodo. Qualys gives an A+ score for the site and the same URL works without errors in Chrome on Android. When I try to connect to the site from an Android app using loopj, I get an…
Zach Rattner
  • 20,745
  • 9
  • 59
  • 82
1
vote
1 answer

Camera Intent Photos Upload

So (or SO), my requirements are: Display 4 photo placeholders Click one placeholder to take a photo Display the 4 thumbnails of the taken pictures in a fragment Upload 4 photos (one unique HTTP request, max size per photo 250kb, total 1 MB) I…
Jumpa
  • 4,319
  • 11
  • 52
  • 100
1
vote
1 answer

Get JSON data from LoopJ AndroidAsyncHttp

I am trying to get response from my node.js server with MySQL database. When I connect to server with my browser I get result like this: [{"person_id":0,"age":18},{"person_id":1,"age":17},{"person_id":2,"age":30}] What I want to do…
1
vote
1 answer

Android - Loopj Cancel Handling Result

I'm using loopj (http://loopj.com/android-async-http/) library in my android projects. I show a dialog message in onFail() if there's an error in my http call. But when user has bad network connection and if clicks back without waiting the result of…
savepopulation
  • 11,736
  • 4
  • 55
  • 80
1
vote
1 answer

LoopJ AndroidAsyncHttp GET gets cancelled on screen rotate?

I execute the following code that does not execute if I rotate the screen: AsyncHttpClient client = new AsyncHttpClient(); client.get(absoluteUrl, params, responseHandler); It surprised me that the network request was cancelled because if I used a…
HukeLau_DABA
  • 2,384
  • 6
  • 33
  • 51
1
vote
2 answers

Android - loopJ AsyncHttpClient return response onFinish or onSuccess

I am looking for a way to return the response I get in loopJ AsyncHttpClient onFinish or onSuccess or onFailure. As of now I have this piece of code: **jsonParse.java file** public class jsonParse { static JSONObject jObj = null; static…
Ganesh Rathinavel
  • 1,243
  • 4
  • 17
  • 38
1
vote
1 answer

AsyncHttpClient﹕ Passed contentType will be ignored because HttpEntity sets content type

Im trying to post some data using the android httpclient (loopj).I add some json data in its body and i set request header.But it shows AsyncHttpClient﹕ Passed contentType will be ignored because HttpEntity sets content type. Does any one know how…
1
vote
1 answer

Properly manage ProgressDialog in AsyncHttpClient tasks to avoid leaked windows Android

I am developing an android application. I need to make several requests to a server from my app so I am using AsyncHttpClient. A part of my app has an user profile and a timeline to show some events. When the user logs in, I need to get their…
Carla Urrea Stabile
  • 869
  • 1
  • 11
  • 35