0

HttpConnectionParams.setConnectionParams

Why this function does not work in my android studio.

Source Code: https://i.stack.imgur.com/0VJE8.png

  • 1
    [HttpConnectionParams](https://developer.android.com/sdk/api_diff/22/changes/org.apache.http.params.HttpConnectionParams.html) is now deprecated – ρяσѕρєя K May 18 '16 at 06:51
  • 1
    This is a _Question_ & Answer site, so when posting a question, don't just post a statement. Also, _"does not work"_ could mean just about anything (does the code fail to compile? does it crash? did your computer explode?). You need to be a lot more specific when explaining a problem to other people. – Michael May 18 '16 at 06:54
  • Please post your code @Abdullah al Hasan – Lips_coder May 18 '16 at 07:00
  • You can use **HTTPURLConnection** instead – Adnan May 18 '16 at 07:19
  • may be duplicate of http://stackoverflow.com/questions/32676049/the-import-org-apache-http-client-cannot-be-resolved-error-when-i-update-sdk-to/35211175#35211175 – Shahzain ali May 18 '16 at 07:21
  • It does work in Android Studio. The strike through line indicates that the HttpConnectionParams is deprecated and should not be used. – Adnan May 18 '16 at 07:22
  • @Adnan What should I use then? – Abdullah Al Hasan May 18 '16 at 08:53

0 Answers0