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
1 answer

How to handle back press action in loopj/android-async-http

I am using this library loopj/android-async-http for performing network operation in android app. In the case of AsyncTask when you press back button while asynctask is running then you can cancel it onBackPressed. I want to know how this can be…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
1
vote
1 answer

loopj RequestHandle crash on cancel

I have a loopj async request in my android app. Here's the code: private RequestHandle requestFetchAds; requestFetchAds = HJRestClient.post(getActivity(), encodedURL, params, new JsonHttpResponseHandler() {...}); The request executes fine and in…
Abdullah Umer
  • 4,234
  • 5
  • 36
  • 65
1
vote
1 answer

LoopJ Android Asynchronous Http Client onpostexecute?

I am making a GET call and am able to add all the results into an array after parsing the JSON. I want to use that array onpostexecute call. Can I do that with this library?
j_vega19
  • 228
  • 1
  • 2
  • 11
1
vote
1 answer

canceling Synchronous multipart request

I need to send multipart post request from AsyncTask using loopj, so I'm forced to use SyncHttpClient. Reading the source code comments, I'm learning that a Request Handle returned from the post method of synchronous request cannot be used to cancel…
dmitryame
  • 478
  • 4
  • 19
1
vote
1 answer

LoopJ AndroidAsyncHttp and Persistent cookie store

Inside my service I run this code: public class MainService extends Service { .... .... CookieManager mCookieManager = CookieManager.getInstance(); CookieSyncManager mCookieSyncManager = CookieSyncManager.createInstance(mContext); if…
trante
  • 33,518
  • 47
  • 192
  • 272
1
vote
0 answers

Populate Listview with multiple async http requests -- loopj?

TLDR: What I need to do is make multiple asynchronous HTTP requests and use the data to populate a list view -- I'm open to a completely new approach if necessary. Hi, I'm new to android and I am trying to use Loopj's async http client library. I…
1
vote
2 answers

Asynchronous-Http-Client Get Request

I am new to LoopJ Android Asynchronous-Http-Client. I figured out how to use my web service to POST to the database but now I cannot figure out how to GET the data from the database with my PHP web service. I need to obtain all the information in an…
Stephen Kuehl
  • 105
  • 2
  • 13
1
vote
3 answers

Loopj timeout exception in Android

I am having a strange problem with Loopj Async HTTP library. I sometimes get the response using GET or POST, sometimes the response comes after a long time, some times the response does not come at all. This happens only when wifi is used. I have…
TharakaNirmana
  • 10,237
  • 8
  • 50
  • 69
1
vote
0 answers

RequestParams hashmap/arralist in POST request

In RequestParams when doing a POST request, I want to send a hash (key/value) or an array. Is this possible using RequestParams? If so, how? Thanks
0xSina
  • 20,973
  • 34
  • 136
  • 253
1
vote
1 answer

Android - Loopj AsyncHttpClient: error on second http request with 3g data connection

I've done long search before doing this post and I've done many test but without success. My Problem (in short): with 3g data connection, every time I do a get request, the first time the connection complete with success. Now, if the device go in…
Danno
  • 93
  • 2
  • 9
1
vote
2 answers

loopj android-async-http onFinish() called before onSuccess()

I'm running Android 4.2.2 on using loopj android-async-http. I recently upgraded from android-async-http-1.4.3.jar to android-async-http-1.4.4.jar. As I upgraded, I noticed a change in my app, which I traced back to a change in order of callbacks…
1
vote
1 answer

Overriding DNS for an application on Android

I have a simple question regarding DNS on Android. Is there any way to change DNS server just for my own app? More specifically I'm using loopj's Android AsyncHttp lib (http://loopj.com/android-async-http/). Looking at the source, I've noticed this…
ADD
  • 754
  • 1
  • 6
  • 15
1
vote
1 answer

How to send request http delete using loopj at android

I make some android app. To log out, I must send http delete request to server. I used loopj liberary. So, I make like this. ConnectionInfo.java public ConnectionInfo(Context ctx) { this.context = ctx; } public void sign_out(String Url,…
user3316557
  • 171
  • 1
  • 6
1
vote
1 answer

Access local network from app while phone is acting as WiFi hotspot?

I'm writing an app that needs to be able to access the web server on my laptop. The phone I'm developing on is acting as a WiFi hotspot which my laptop is connected to. Everything is working fine if I try to access 192.168.43.16 in the phone's…
Magnus
  • 17,157
  • 19
  • 104
  • 189
1
vote
0 answers

Static Http Client not giving callbacks

I used Loopj Android library for Post requests it works fine when I don't use Static Http Client but when I use Static Http Client it does not give any callback here is my code for class of HttpClient import com.loopj.android.http.*; public class…
user2400432
  • 21
  • 1
  • 4