Questions tagged [androidhttpclient]

Implementation of the Apache DefaultHttpClient that is configured with reasonable default settings and registered schemes for Android This class was deprecated in API level 22 (Android 5.1). Please use URLConnection and friends instead. The Apache HTTP client is no longer maintained and may be removed in a future release. Please visit this webpage for further details.

Implementation of the Apache DefaultHttpClient that is configured with reasonable default settings and registered schemes for Android.

Warning: This class was deprecated in API level 22 (Android 5.1).
Please use URLConnection and friends instead. The Apache HTTP client is no longer maintained and may be removed in a future release. Please visit this webpage for further details.

Useful links

418 questions
0
votes
2 answers

HttpPost inside getView from Adapter

I have a Listview with multiple items, in every item there is 2 buttons. What i want to do is when i click on a button, it sends some data to server through the HttpPost. I put a Thread inside my Adapter.getView() but it's not working because the…
Akram Fares
  • 1,653
  • 2
  • 17
  • 32
0
votes
1 answer

Getting a JSON data and reading as a string is slow (compared to my browser)

I have read many questions on SO about like this, this, this and this. My problem is the following: I have json data that reside on a server. Tha data are cached and are requested as gzip, so that the whole size is about 110kb. If you try to…
antoniom
  • 3,143
  • 1
  • 37
  • 53
0
votes
1 answer

Getting last tweet on android (API 1.1)

I am using the following method for making an android app: public JSONObject lastTweet(String username) throws ClientProtocolException, IOException, JSONException { String url =…
Born Again
  • 2,139
  • 4
  • 25
  • 27
0
votes
1 answer

Retrieving data from a website not working (Android)

I use the following class to retrieve data from a website: public class GetMethodEx { public String getInternetData() throws Exception { BufferedReader in = null; String data = null; try { HttpClient client =…
Born Again
  • 2,139
  • 4
  • 25
  • 27
0
votes
2 answers

Android POST Request to PHP

I try to develope an Android application. In this application, I need to send a POST request to a PHP page. My code is at Java side: DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new…
misman
  • 1,347
  • 3
  • 21
  • 39
0
votes
1 answer

HTTP POST PARAMETERS ENCODING ERROR ANDROID

I am developing an Android App. I need to connect to my PHP and i am usig HttpPost. This is my code. I've followed several tutorials and it doesn't work. The error is that the PHP doesn't receive the parameters that I pass from my App code.…
0
votes
1 answer

httpget android wcf error

HttpClient Client = new DefaultHttpClient(); String URL = "http://192.168.2.22:1099/Service1.svc/test"; try { String setServerString = ""; HttpGet httpget = new HttpGet(URL); …
user223100
  • 43
  • 3
0
votes
3 answers

android force close on json parse from url api

I have an app I am building that uses an action bar search to send the search term to an online api which sends back json results. So far I have search working, and coded the json parser to look at the results. I have not worked out displaying the…
Mike
  • 6,751
  • 23
  • 75
  • 132
0
votes
0 answers

User reported "Server busy" error in android when contacting server -- haven't found anything googling this however

I have a couple of feedback messages set up in my android application, but "Server busy" is not one of them. A user reported having this error and needing to try to contact the server 3 times before he could make a successful connection. Googling…
Bryan
  • 623
  • 1
  • 6
  • 23
0
votes
2 answers

Android Http client library issue

I am using the following HTTP client library - https://github.com/kevinsawicki/http-request ...and when I use it inside my app, I get the following runtime error. My app compiles alright. W/dalvikvm: VFY: unable to resolve static method 4110:…
kapso
  • 11,703
  • 16
  • 58
  • 76
0
votes
1 answer

Extracting data from server takes too much time- android

I have a android application, where i extract data from the multiple urls and save then as arraylist of string. It works fine, but for fetching data from 13 urls, it takes close to 15-20 sec. Where as fetching the data from same set of urls take 3-4…
bharath
  • 953
  • 4
  • 17
  • 30
0
votes
1 answer

I can make a http post on android emulator but can't in cell phone

i'm sending a post using this code: try { // Add your data List nameValuePairs = new ArrayList(1); nameValuePairs.add(new BasicNameValuePair("imagem", "1")); httppost.setEntity(new…
0
votes
2 answers

URL HTMLCLient calls in Android

I'm working with an API which requires me to make "URL HTMLCLient calls" and it returns a data in JSON format. I've tested the links on my browser and they work fine but when I try to retrieve the data in Android I keep getting a null value…
Amanni
  • 1,924
  • 6
  • 31
  • 51
0
votes
1 answer

android HttpURLConnection catch if nothing could download

I'm using an asynctask to download an xml from an given URL. I get the url from the preferencescreen. N Now i'm trying to catch some errors so the app doesn't crash but gives a nice toast with the error. It works already for if the user forgets the…
Gvg
  • 318
  • 4
  • 16
0
votes
1 answer

Android HTTP Request with HttpClient and AsyncHttpClient

I am developing an android application which make a HTTP request to a php file and then give me a String. The code works fine in android 2.x and lower, but when I run it in an android os higher then that it crashes. I have all the necessary…
user2134466
  • 296
  • 1
  • 2
  • 13