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

How/where to embed/add the API Key for Google Sheets in Android Studio

After wading through 100+ SO articles, I am acutely aware of how swampy the topic of Google APIs and credentials is, so I'll try to keep this one narrow and focused. I want to use a Google Spreadsheet to simply read and write pairs of strings for a…
Mairyu
  • 809
  • 7
  • 24
1
vote
2 answers

Uri to Bitmap Issue

I am getting profile image as a Uri from Google signin and now want to send that image on another server. So following is the Class i am using for the same. MultipartUtility.java public class MultipartUtility { private final String boundary; …
1
vote
3 answers

Xamarin HttpClient

I'm using Xamarin Forms to consume REST Api from NetFlix but i get this issue in Popup: System.Net.WebException: Error: NameResolutionFailure Why o get this error? My Code: private HttpClient client = new HttpClient(); private List
Gabriel Gomes
  • 139
  • 1
  • 3
  • 20
1
vote
0 answers

Android Webview HTTP client

What HTTP client does Android’s Webview use under the hood to establish an HTTP connection when loading a URL into the webview? More specifically, does it use it’s own HTTP client or one of the following: HttpsURLConnection, DefaultHttpClient or…
1
vote
0 answers

Android Volley error in POST request.

I have a problem with my Android code. I use volley lib to make http requests. In order to login into my app, I use the code below: private void checkLogin(final String email_string, final String password_string) { String tag_string_req =…
makis.k
  • 432
  • 6
  • 23
1
vote
1 answer

How to make a PATCH request with jSONObjectRequest in android volley?

I want to make a PATCH request with json object request in android using volley library. Its working in postman but when i call it in android, it gives me error 405,Anybody have any idea How to do it? Below is my code: requestQueue.add( new…
1
vote
0 answers

Different response from postman and Android API call

I am facing absurd situation in my application. I am requesting an API to get some data.When I hit through postman It gives proper data in int format like "0", But when I debug my code and get response from server its float like "0.0". Facing this…
unflagged.destination
  • 1,576
  • 3
  • 19
  • 38
1
vote
0 answers

Connect android phone to esp8266 directly

I am writing an android app that can send data to arduino board through esp8266. I have been following the code attached but I don't know how to change the HttpClient to the HttpURLConnection /** * Description: Send an HTTP Get request to a…
1
vote
1 answer

HttpClient posting xml serialized byte array

I have a deployed android application written in VS2010, that I'm porting over to VS2012. I'm trying to use the HttpClient to communicate with my WCF Restful webservice. The web service is an XML web service. I serialize my model objects to a…
jt_74
  • 13
  • 2
1
vote
2 answers

how to build REST client in android using HttpUrlConnection

I want to build an android app that consumes some REST APIs. I'm using HttpURLConnection to make a basic authentication and GET/PUT some data, but I feel that I'm doing it the wrong way. I have a two classes ConnectionPUT and ConnectionGET that I…
Mraimou
  • 175
  • 3
  • 13
1
vote
0 answers

what is the difference between timeout, connect timeout and response timeout?

I am using Loopj's AsyncHttpclient in my android App to send asynchronous requests to fetch data. I want to cancel the task if there is no response from the server or if it takes more than 10seconds to connect to the server. I tried setting timeout,…
Monish Kamble
  • 1,478
  • 1
  • 15
  • 28
1
vote
1 answer

How i can know if the conection to server is correct or not?

I make a login but i need know when the conection to server is fail ,this is my event of button login.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { …
1
vote
4 answers

How to do API call with Request body(application/json) and Request headers?

Im beginner of android. try to call API with Request body(application/json) and Request headers.here is what i have tried private String doEmotionAPICall(String imgURL){ //creating map object to creat Json object from it try { …
undefined
  • 43
  • 1
  • 8
1
vote
1 answer

Migrating from AndroidHttpClient to URLConnection

I'm relatively new to this and I've been using the AndroidHttpClient just fine to help with downloading images to my app via Parse. Now with Sdk 23, I've got to rewrite a few of my classes. My question is fairly simple. Let's take the following…
Martin Erlic
  • 5,467
  • 22
  • 81
  • 153
1
vote
3 answers

AndroidHttpClient is deprecated

Well, my ImageDownloader class is broken with the new Sdk. How would I go about making this work now? Any possibility I could just replace some of the following classes without making major changes to my code? static Bitmap downloadBitmap(String…
Martin Erlic
  • 5,467
  • 22
  • 81
  • 153