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
votes
2 answers

ArrayIndexOutOfBoundsException in doInBackground method

Please help me with this error. Even after passing value in execute() method I'm still unable to fix this issue. Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0 at…
-1
votes
1 answer

Android Emulator: socket not connecting to server and python side of httpclient

I have two questions, First, I am running an Android emulator that connects to Python server to download images from it. For some reason,the socket is not connecting to remote server. I am using IP address of the server and port which the server is…
-1
votes
1 answer

Get username ,password, location and imei number of current device and send it to server?

Hey guys i design an app in which i have to get username and password for authetication then current location and IMEI number of the current device.Then send it to server I am new to this concept.I want anybody to guide me.(android login screen with…
user8181649
-1
votes
1 answer

ServerResponse 404 while uploading image to server

I want to upload Image to Perticular Url(www.myUrl.com/myFolderName/) through android and retrieve the address of that url. Here is my code class SaveFile extends AsyncTask { FileInputStream fileInputStream; …
Pranita
  • 803
  • 7
  • 16
-1
votes
1 answer

Android Mysql Connection Error

Hey Guys I'm trying to make registration page using mysqli and php for backend and java for front end. My PHP Connection file works file even i've inserted data as well when i tried to insert data using android application it doesn't insert and even…
-1
votes
2 answers

onResponse variable is null in void run()

I'd like to get color value inside void run, how can I do this? any example? color is null there. public void onResponse(Call call, final Response response) throws IOException { String color = response.body().string(); …
renata costa
  • 177
  • 10
-1
votes
2 answers

How to see request body in JSON format if Retrofit2 is used while sending POST call to API?

I am sending a POST request to server and my interface is this for Retrofit2 to convert it into JSON public interface LoginService { @POST("auth/signin") @FormUrlEncoded Call signin( @Field("email") String email, …
Devansh Kumar
  • 1,552
  • 1
  • 15
  • 27
-1
votes
2 answers

How to send and receive data from ASP.NET server to Android

I want to make a Biometric e-voting system.A voter register and cast vote through android app and all other activities are handled in asp.net server.here i want to know how send and receive data from ASP.NET server to Android
-1
votes
3 answers

i want to get JSONObject from server using http

I have a problem with some deprecated methods.(httpDefault) What that i want is simple: i have url (json data) -> send request -> receive jsonObject. i have no idea. i've already tried some tutorial, but it didn't work for me. ( 1.…
bubu uwu
  • 463
  • 2
  • 12
  • 26
-1
votes
1 answer

Android http file transfer

I want to transfer file from my android application to http address.I written following code but doesnt work.The address of hhtp=192.168.0.1:8181 with username=admin and password=blank. Where should i set username and password for http file…
Lalit Jadiya
  • 213
  • 4
  • 14
-1
votes
1 answer

HttpGet is returning null for a specific url

My Code below is working properly when URL="http://rest.riob.us/v3/search/474". However is returning null for URL="http://dadosabertos.rio.rj.gov.br/apiTransporte/apresentacao/rest/index.cfm/onibus/474". Both URLs are working fine on…
kbeca
  • 29
  • 4
-1
votes
1 answer

How to use HttpUrlConnection and openConnection() in the below code

I am developing login and register using the external database from a youtube tutorial that uses HttpClient, HttpParams, HttpPost, HttpResponse and HttpEntity. However, these functions are deprecated. Please help to modify the below code using…
-1
votes
1 answer

Android HttpPost Failure with working HttpGet

i'm new in android programming and may i just missed an obvious mistake there but i don't see it right now. The point is actually pretty simple. I have a working HttpGet Method and just for trying i changed it into a HttpPost Method. But it didn't…
terryer
  • 1
  • 1
  • 2
-1
votes
1 answer

Create a better Download Service

I'm new with services (and downloading for that matter)... I have this download service that downloads an XML feed and parses it, but it takes a while. I'm downloading from 14 different URLs, this service downloads from a url, parses the xml, then…
Psest328
  • 6,575
  • 11
  • 55
  • 90
-1
votes
3 answers

Android application running on 2.3.5 but crashing in 4.1.2

I am creating an app that will access and fetch the data from server thus application works fine and running as expected in GingerBread(2.3.5) but it crashes in JellyBeans(4.1.2). It generates the following error 12-19 14:46:12.027:…
1 2 3
27
28