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
4 answers

App is FC when trying to access a web page

I have the following code from my application: DefaultHttpClient httpClient = new DefaultHttpClient(); HttpGet httpGet = new HttpGet("http://www.pagesbyz.com"); ResponseHandler resHandler = new BasicResponseHandler(); try { String page =…
Si8
  • 9,141
  • 22
  • 109
  • 221
0
votes
1 answer

load a variable to my android app from a URL

This is probably really simple but I am very new to making apps, in fact this is my first attempt. I want to know how I should go about writing the code for my app to go to my website, load a text file and store it as a variable. I have a file…
user2865082
0
votes
2 answers

Android post data via url

in my app i need to post data to an url to register a new user. Here is the url http://myurl.com/user.php? email=[EMAIL]&username=[USERNAME]&password[PASS]&img_url=[IMG] If I do that correctly I should get this…
Darko Petkovski
  • 3,892
  • 13
  • 53
  • 117
0
votes
4 answers

how to update Ui from background task

My app is not working on android version 4.1 gives exception like android.os.NetworkOnMainThreadException i have search on stackoverflow advice me to do network thread in background AsyncTask so before use backgroundtask, My screen look like this…
0
votes
1 answer

HTTP request is not providing a result

Please help me to find a solution: If I call the URL (below) the server provide me a something like this: "Name", "Date" "Peter", "01.01.2013" "Paul", "12.12.2012" So the server provide me an SQL table as text. I tried to request this and convert…
Bolic
  • 705
  • 2
  • 12
  • 30
0
votes
2 answers

Equals sign in url not working

i got a problem which i tried hard to solve with searching with google because will be a simple solution. I want to open the following url: http://<>/query.html?sql="select * from ADAnreden" To do this, i write this url in a string to open it…
Bolic
  • 705
  • 2
  • 12
  • 30
0
votes
1 answer

Android : Read blocks while reading HTTP response

I am trying to read a fairly large response body (video data > 5 MB) using Android HttpClient. I have used the AsyncTask method to execute the network task in background. The code gets stuck at the read call and times out with OutofMemoryError. I…
0
votes
0 answers

Base way to handle multiple http calls simultaneously in android

I am creating a social app. In this there are many http calls. I have create a method to handle which is used for http calls. I have created saprate AsyncTask for each request. My problem is the responce is very slow if there is multiple http…
0
votes
2 answers

Optimizing HTTP requests in android

I have noticed that my http requests tend to take alot of time compared apps communicating with same server. It makes my app feel sluggish and I was wondering if there is a better way of making these requests and updating the UI. At the moment I use…
GrayStatic
  • 117
  • 3
  • 9
0
votes
3 answers

android cancel previous http get request

I want to create an autoCompleteTextview with the suggestion from the web-service. On text change I call the web service with the text entered. public String searchpalace_Searchtext(String serchtext) { String resultString = ""; …
null pointer
  • 5,874
  • 4
  • 36
  • 66
0
votes
1 answer

login authentication using httpget from url

please help I m creating login page using this code .which authenticate after matching url value user name and password And JAVA code, public class AndroidHTTPRequestsActivity extends Activity implements OnClickListener { private EditText…
0
votes
0 answers

Android 4.0.3 https post returns empty, http works, both works on 2.0.3

I'm connecting my Application to a REST type webservice. I'm using the apache http library, the request is a standard post request, ran in a background thread. Now my problem is that if I'm using http://myserver.com/api/command it works and I get…
user2001951
  • 185
  • 1
  • 3
  • 14
0
votes
1 answer

Symfony2 firewall issue Android

Let me explain my situation, I developed a complete backend for an Android application in Symfony2.1 that works perfectly, now I'm trying to create the Android app part, for that I created a firewall with http_basic authentication that ensures that…
soni
  • 687
  • 1
  • 8
  • 23
0
votes
2 answers

download multiple files keeps stopping android

Trying to download about 38 video files from a server with the code below and for some reason it keeps stopping at different points during the download, I'm mostly getting a java.net.SocketException: Connection timed out I'd like to know how I can…
Amanni
  • 1,924
  • 6
  • 31
  • 51
0
votes
2 answers

Android HttpPost getting the 403 Forbidden

PHP curl request to retrive the data from server getting the response right. But when i call from Android to HttpPost it returns this Error: 403…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/android" class="post-tag grid--cell" title="show questions tagged 'android'" rel="tag">android</a> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</a> <a href="../../questions/tagged/http-post" class="post-tag grid--cell" title="show questions tagged 'http-post'" rel="tag">http-post</a> <a href="../../questions/tagged/androidhttpclient" class="post-tag grid--cell" title="show questions tagged 'androidhttpclient'" rel="tag">androidhttpclient</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 08 '13 at 07:44">asked Jul 08 '13 at 07:44</time> <a href="../../users/2090218/john" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2090218.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="John" /> </a> <div class="s-user-card--info"> <a href="../../users/2090218/john" class="s-user-card--link">John</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">51</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="3 silver badge">3</li> <li class="s-award-bling s-award-bling__bronze" title="13 bronze badge">13</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/androidhttpclient_page=24" rel="prev" title="Go to page 24">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/androidhttpclient_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/androidhttpclient_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/androidhttpclient_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/androidhttpclient_page=27" rel="" title="Go to page 27">27</a> <a class="s-pagination--item" href="../../questions/tagged/androidhttpclient_page=28" rel="" title="Go to page 28">28</a> <a class="s-pagination--item" href="../../questions/tagged/androidhttpclient_page=26" rel="next" title="Go to page 26"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>