title: how do i enable httpclient in android studios?
body: <p>Help! How do i enable the following httpclient in my android studios? Can't seem to find NameValuePair, BasicNameValuePair, Httpclient, Httppost and apparently my HTTPConnectionParams are depracated? How do i resolve them?      </p>
  
  <pre><code>ArrayList&lt;NameValuePair&gt; dataToSend = new ArrayList&lt;&gt;();
              dataToSend.add(new BasicNameValuePair("name",user.name));
              dataToSend.add(new BasicNameValuePair("email",user.email));
              dataToSend.add(new BasicNameValuePair("password",user.password));
  
              HttpParams httpRequestParams = new BasicHttpParams();
              HttpConnectionParams.setConnectionTimeout(httpRequestParams, CONNECTION_TIMEOUT);
              HttpConnectionParams.setSoTimeout(httpRequestParams, CONNECTION_TIMEOUT);
  
              HttpClient client = new DefaultHttpClient(httpRequestParams);
              HttpPost post = new HttpPost(SERVER_ADDRESS + "Register.php");
  
              try{
                  post.setEntity(new UrlEncodedFormEntity(dataToSend));
                  client.execute(post);
              }catch (Exception e) {
                  e.printStackTrace();
              }
  </code></pre>