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

Receive files sent by loopj httpclient in asp.net server

I want to save a picture from an Android device to my ASP.NET server. The code in android is this: AsyncHttpClient client = new AsyncHttpClient(); RequestParams params = new RequestParams(); params.put("name", fileName); try { File imageFile =…
Gil
  • 235
  • 3
  • 13
0
votes
1 answer

Failed to resolve:com.loopj.android:android-async-http:1.4.8

I have downloaded jar file of Loopj library and placed it in libs folder. have tried many changes but getting same error. Can anyone please help me to solve this. build.gradle :- apply plugin: 'com.android.application' android { …
Pratik Sule
  • 163
  • 4
  • 18
0
votes
1 answer

How to use a service of mode synchronous in android with loopj

Good day, In this moment I'm developing an app that use a webservice of mode Async, but I have some problems with it. I need use the webservice of mode synchronous for continue with my principal thread without any problem. Thanks so much!!!
Rancid
  • 3
  • 2
0
votes
1 answer

Asynchronous within non-void method

I'm using Android loopj library to have asynchronous HTTP client. I need to set the responseBody to the image object's property like following but because of asynchronous, the return statement will be run instead and the image object is always…
Alex
  • 1,623
  • 1
  • 24
  • 48
0
votes
2 answers

LoopJ AndroidAsyncHttp StringEntity Issue

I am using StringEntity with AndroidAsyncHttp but it is deprecated. Is there another way to get this to work while sending my json string in the way I am to my web service? public void getPropertyImagesAsync(final String[] params) { …
Joe Ginley
  • 301
  • 3
  • 15
0
votes
1 answer

loopj android-async-http error

I downloaded the android-async-http-1.4.8.jar and put it under the app->libs folder. Then add the following code in the MainActivity. AsyncHttpClient client = new AsyncHttpClient(); client.get("http://www.google.com", new…
hatted
  • 1,535
  • 1
  • 15
  • 26
0
votes
2 answers

android loopj library Internal Server Error

I use loopj Android Asynchronous Http Client and I have problem with registration. Registration code: private void register(){ RequestParams params = new RequestParams(); params.put("email", "uuu@ii.com"); params.put("name",…
zxc123qwe098qqq
  • 165
  • 2
  • 4
  • 13
0
votes
1 answer

android - GET-request with Loopj

I need to make GET-request to a url consisting JSON-data and try to use Loopj library, but it returnes nothing. I tried to find examples on the Internet but they turned out, maybe, to be obsolete (onSuccess method had different parameters). I tried…
Justin McGuire
  • 365
  • 1
  • 5
  • 18
0
votes
1 answer

Android LoopJ's HTTP client

I'm using LoopJ to connect my app to a web service. I make multiple ws request using AsyncHttpClient in a for loop ( i must send them in a loop ; i can not send them all at one ) For each resond that i recive i must modify a specific TextView in my…
Huliganul
  • 71
  • 1
  • 9
0
votes
1 answer

SmartImageVIew, I would like to force refresh (and not caching)

I am using this useful class that allow smart online downloading of images (from the loopj guys). It works fine, but i cannot force the "refresh" in the case of same name images that could have been changed in the server (example: I update my…
Bies
  • 37
  • 6
0
votes
2 answers

Calling a PHP in a for loop using AsyncHttpClient

I am trying to call php file inside a for loop using AsyncHttpClient after fetching the values I am storing the values in local DB. I am sending parameters to my php file as it requires to fetch data from mySQL. Fetching part is working fine but…
TheDevMan
  • 5,914
  • 12
  • 74
  • 144
0
votes
1 answer

Loopj library not working with Codeigniter File Upload

I'm trying to upload image to server from my Android application with Loopj library. On server side I'm using Codeigniter and file upload library. But Codeigniter always give me this error, even i tried with allowed extensions. The file type you are…
bdsys
  • 1
  • 1
0
votes
1 answer

Save file object to internal storage as image

I am downloading image via a URL using loopj library https://github.com/loopj/android-async-http. In response I get image as File object. I want to store this image as .jpg to my internal storage and get the path of that image. Can anyone please…
Rishabh Srivastava
  • 3,683
  • 2
  • 30
  • 58
0
votes
1 answer

LoopJ and Google Maps in the same time

I'm experiencing delay with single httppost while GMaps is downloading maps over mobile network. Once single httppost took 7min to finish. Is there a way to prioritize request or temporarily pause GMaps?
user2035884
  • 39
  • 2
  • 4
0
votes
1 answer

using loopj to download large data

I'm dealing with problems (memory leak, ui freeze, ...) using loopj (latest version: 1.4.6) to download some large (5m+) text data (complex json encoded objects which contain base64-encoded binary data as one of their fields). here's the base class…
magpie
  • 41
  • 1
  • 7