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

loopj - Android Asynchronous Http Client upload image from drawable

I'm trying to send an image from drawable to rest web service use android asynchronous http client. This link show how to send image use path, Uploading an image from Android (with Android Asynchronous Http Client) to rails server (with…
mrconga
  • 31
  • 7
0
votes
2 answers

How quickly can an Android phone reliably update a web service?

I am trying to send gps data to a PHP webservice that will then update a mysql database. I would like to be able to update the database once a second. The phone will be plugged in so battery usage is not a concern. Is once per second reasonable and…
nickfox
  • 2,835
  • 1
  • 26
  • 31
0
votes
1 answer

Determine When LoopJ has concluded all background connections

Im trying to determine when LoopJ has finished all background thread http calls. So that i can then display the results of an array that is populated based on the results of my onSuccess methods. First off, I have a String[] of file names. I'm then…
Jaison Brooks
  • 5,816
  • 7
  • 43
  • 79
0
votes
1 answer

Facing difficulty while sending mp3 file from Android to Server

I'am trying to send a mp3 file from my Android application to Server. I'am using this method android async http to send mp3 file. This is my code. try { params1.put("file", new…
0
votes
2 answers

How to resize image with Picasso before upload to server?

I am uploading images with loopj. params.put("file_"+key+"", new File(String.valueOf(value.getOriginalPath()))); but i want to resize image before upload. Is there a way to resize image "on the fly" - without resizing->saving to SD->uploading? just…
SERG
  • 3,907
  • 8
  • 44
  • 89
0
votes
1 answer

Loopj Android Asynchronous Http Client Cookies not save in signed apk

Why my cookies are not saved when my app is exported with signed certificate for upload to Google Play Store? When I run my app in from eclipse it works fine and the cookies are saved. I use for Http connection with this…
Elnatan Derech
  • 987
  • 2
  • 12
  • 18
0
votes
2 answers

Loopj messing special characters before sending them through a request

I'm trying to send special characters through an http request, now I'm using Loopj as my http client. The problem is that when I try to send special characters i.e. "áéíóú" the request goes out with the characters "·ÈÌÛ˙", this is causing some…
FeleMed
  • 601
  • 9
  • 28
0
votes
3 answers

Cancel AsyncHttpClient request when progress dialog is cancelled Android

I'm making requests from my android app to a server and I am using loopj's AsyncHttpClient library to do so. I've trying to cancel a request if the progress dialog is cancelled (on back key pressed) but what it is actually happening is, the…
Carla Urrea Stabile
  • 869
  • 1
  • 11
  • 35
0
votes
0 answers

android AysncHttpRequestClient cancel request when switching tabs

Hi i am using AsyncHttpRequestClient to run my network calls which i'm calling from a fragment and a tab bar. when the tab switches to a new fragment i need to cancel any requests that may have been running on the previous fragment. Normally i would…
iamlukeyb
  • 6,487
  • 12
  • 29
  • 40
0
votes
1 answer

Get and parse JSP page on Android

I am trying to create an Android App to display my school agenda. I'm doing it fine at the beginning with loopj. I can connect to my school account and get pages. BUT, the agenda part is a JSP page and i'm entering into "onFailure" method. I'm using…
maxime1992
  • 22,502
  • 10
  • 80
  • 121
0
votes
1 answer

posting multiple images to a service with on screen feedback

I'm fairly new to Android development and have a lot to catch on. I have a conceptual question. What seems to be fairly straight forward to do in IOS, I can't figure out in Android. Here is what I'm trying to accomplish: I need to iterate over the…
dmitryame
  • 478
  • 4
  • 19
0
votes
1 answer

loopj Async Http Android Charset

How is it possible to set a charset to the AsyncHttpClient? I can't recieve "ü" or something like this in a readable way (just receiving question tags). Can anyone help me?
Phil
  • 583
  • 4
  • 7
  • 19
0
votes
0 answers

Loopj AsynHttpClient Post Request Response

Loopj AsynHttpClient ASP.Net I am trying to connect to ASP.NET WebApp. OnSuccess callback, i want to read the webpage and get text and data from the webpage. how can i get it or how can i parse it to the JSON or XML? I successfully Connected to the…
0
votes
1 answer

How to get Facebook profile image using Android Smart Image View?

I can get Facebook profile images using http://graph.facebook.com//picture?type=square but it redirects to https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xpf1/t1.0-1/p50x50/XXX.jpg How can I set new image url using Loopj's Android…
aikutto
  • 592
  • 2
  • 8
  • 22
0
votes
0 answers

AsyncHttpResponse ASP.Net Response

I'm developing an Android application that send some string via Http Post to ASP page with a library AsyncHttpResponse (loopj). AsyncHttpClient device = new AsyncHttpClient(); ... device.post("http://aspspider.info/remod/webroot/provaNome.aspx", …