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

Implement Basic HttpClient Post with Loopj on Android

I am new to Android programming and am having some difficulty implementing a basic version of a message sender using the Loopj library. Here is my code: package com.test.app; import android.support.v7.app.AppCompatActivity; import…
0
votes
2 answers

Getting data from Server too slow ? (Android)

I am trying to populate RecyclerView by the list of transactions i get from the server . but unless i put a Thread.sleep(7000) , it won't populate . Does it take this much time to get data from server side ? If yes , Is there any faster alternative…
devcodes
  • 1,038
  • 19
  • 38
0
votes
1 answer

How to create context when sending json content?

Reading this question : POSTing JSON/XML using android-async-http (loopj) in order to post json where is the context value set ? The accepted answer uses a context value as a parameter within post method invocation : JSONObject jsonParams = new…
thepen
  • 371
  • 1
  • 11
0
votes
1 answer

In loopj how to get value to pass in the url of get request

I got the list of all employees using loopj to get from the rest services using this code. public class MainActivity extends ActionBarActivity { private ListView employeeList; @Override protected void onCreate(Bundle savedInstanceState)…
user3785322
  • 153
  • 1
  • 6
  • 15
0
votes
0 answers

How to pass long as string on url for json response in loopj

Just started learning loopj. how to pass long {id} on url as string? I have a method in client like this, public static void getAllByIdForSpinner(Context context, String url, Header[] headers, RequestParams params,…
user3785322
  • 153
  • 1
  • 6
  • 15
0
votes
1 answer

Callback method for AsyncHttpClient if internet connection with no data android Loopj

I am using Loopj to get a request and response. But it seems that callback method is not called properly if internet connection with no data. When I click a listview its execute below code: AsyncHttpClient client = new AsyncHttpClient(); …
0xAliHn
  • 18,390
  • 23
  • 91
  • 111
0
votes
2 answers

How to get indvidual data from jsonarray

I am trying to populate a spinner with data from mysql/rest service. I want to show only the id's of all employees in spinner.In the drop down box i see id with values and other columns as name: null, age: null etc. But after selecting one, i am…
user3785322
  • 153
  • 1
  • 6
  • 15
0
votes
1 answer

Can't import android-async-http in AndroidStudio

I add com.loopj.android:android-async-http:1.4.9 in ProjectStructure (AndroidStudio 2.1.2) But when graddle script sync i get error Failed to resolve: com.loopj.android:android-async-http:1.4.9 app/build.gradle: apply plugin:…
0
votes
1 answer

loopj JsonObject with inside JsonArray JsonObjects

I have a Webservice which give me back this: {"result":[{"Id":"20","temperatura":"34","humedad":"29","Insertado":"2016-07-01 12:19:42"},{"Id":"21","temperatura":"34","humedad":"29","Insertado":"2016-07-01…
Oscar C.
  • 167
  • 1
  • 2
  • 12
0
votes
1 answer

Cannot parse json in android

i have the json which receives json from my web service. Which will be look like this, …
noushad
  • 11
  • 2
0
votes
1 answer

how to upload image file and json with Loopj AsyncHttpClient?

i want upload to Spring server @RequestBody json and multipart-file(imgaefile) at ones. how do i do? Thanks for help.
최봉재
  • 4,039
  • 3
  • 16
  • 21
0
votes
2 answers

How to send data in json format using AndroidAsyncHttp

I am trying to send data via post method of AsyncHttpClient in json format to server, server accept this format { email : 'foo@bar.com' password:'xxxxxx' 'username:'John Doe' 'lastname:'john' } and this is my code JSONObject params = new…
Matiullah Karimi
  • 1,234
  • 1
  • 15
  • 17
0
votes
2 answers

Populate spinner android and Asynchronous-Http-Client

I am new to LoopJ Android Asynchronous-Http-Client.I figured out how to GET the data from the database with my PHP web service. My ServiceHandler : public class ServiceHandler { private static String BASE_URL="http:/my/url/"; private static…
Amal
  • 279
  • 3
  • 5
  • 21
0
votes
1 answer

Asynchronous Loopj - AsyncHttpClient: missing method "setCoookieStore()"

I'm trying to implement the sample android app provided here. I've installed all the dependencies as directed, but when I run the code on an actual phone, the error messages suggests (I think!) that the method setCoookieStore() doesn't exist and…
Afflatus
  • 2,302
  • 5
  • 25
  • 40
0
votes
1 answer

Android Asynchronous Http Client - Can't install on Mac OS 10.10.5

I just downloaded the main Java Jar file directly from here: http://loopj.com/android-async-http/ Double-clicked the jar file and got this error message pop up: "The Java JAR file "android-async-http-1.4.9.jar" could not be launched. Check the…
Afflatus
  • 2,302
  • 5
  • 25
  • 40