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
-2
votes
1 answer

How to get json the data from json based api without using any 3rd party library in Android?

I want to fetch the json data from web api, I was previously using Retrofit for that, but I don't wanna use any third party library. I know I can use HttpURLConnection or HttpClient but there is no proper post for that and they are too old, and in…
-2
votes
1 answer

android use HttpPost and StringEntity

It's my first project. When i use Post,I can't send the data to server. Here is my code: JSONObject json = new JSONObject(); try { json.put("_username", mUsername); json.put("_password", mPassword); …
Ling QI
  • 17
  • 6
-2
votes
1 answer

Why does I am getting duplicated contacts in my web server?

I need your kind support....I am developing android application that stores user contacts on web server. When I'm trying to upload contacts from my android phone to my server via php; it uploads some of my contacts properly (almost 250 contacts )…
-2
votes
2 answers

android: cannot resolve the symbol "urls"

I am new to android to programming and i am following the code from the youtube video but i am getting error "cannot resolve the symbol "urls"" for " HttpGet httppost = new HttpGet(urls[0]);".I found out through research that the HttpGet is not…
-2
votes
1 answer

Android Gradle build error Need to connect with database

Do i need to add any jar file. or need to and any dependencies apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "21.1.2" defaultConfig { minSdkVersion 14 targetSdkVersion 23 …
user000
  • 29
  • 2
  • 7
-2
votes
1 answer

How to abort upload image into server while it's in progress in android?

My codes is below : if (imgLists.size() != 0) { for (int i = 0; i < imgLists.size(); i++) { Log.e(TAG, "foldername and image:" + imgList.get(0)._mFolderName + ", and :" …
kablu
  • 629
  • 1
  • 7
  • 26
-2
votes
1 answer

Android HTTPGET request error, values not goin to server when click on login button

I'm trying to write a code which signups a user. The php script is running fine. But code is android code is not working. Values not going on server. package com.androidexample.httpgetexample; import java.io.UnsupportedEncodingException; import…
-2
votes
1 answer

How to Get Html from a Url in Android API 16?

I am a newer to Android,this question,I have tried many times, but I can't do it. Pls help! This is my code: public class HttpHelper { private static final int CONNECTION_TIMEOUT = 30000; private static final int SOCKET_TIMEOUT = 10000; public…
liukuo362573
  • 39
  • 10
-3
votes
1 answer

unfortunately android application has been stopped. At Http Post while attempting to call server

Unfortunately android application has been stopped. At Http Post while attempting to call server at post activity please help HttpClient cli = new DefaultHttpClient(); //HttpPost post = new HttpPost("http://" + sp.getString("ip",…
-3
votes
3 answers

In android how to check the internet connection at regular intervals

What i need Precisely is my code should check internet status at regular intervals (Say every 30 or 40 seconds ).How to do this ..Should i use Demon thread or any other components available in android .Hope am clear .
-3
votes
2 answers

Target must not be null

Java code: try { // defaultHttpClient DefaultHttpClient httpClient = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(url); HttpResponse httpResponse =httpClient.execute(httpGet); …
Sagar Maiyad
  • 12,655
  • 9
  • 63
  • 99
-4
votes
2 answers

HTTP Request Not Working?

I'm trying to create an app which will send some data to a web server when a button will be clicked and the data will be from the form. The data types are first name, last name and others. I'm a beginner developer and trying OKHTTPFClient plugin for…
-4
votes
4 answers

How to get response after using POST method in Android

url is : http://localhost method type : post header : Content-Type:application/json, decode:2 data : xx How can we achieve this in android??,and how do i get response from this ?? I saw that the Httpclient is deprecated Any help would be appreciated
Venky
  • 1,929
  • 3
  • 21
  • 36
1 2 3
27
28