title: Android Studio - NameValuePair and HttpParams is deprecated
body: <p>I am new to Android development and I am have some deprecated issues. In Android Studio, it is stating that the <code>NameValuePair</code> and <code>HttpParams</code> is deprecated. </p>
  
  <pre><code>ArrayList&lt;NameValuePair&gt; dataToSend = new ArrayList&lt;&gt;();
          dataToSend.add(new BasicNameValuePair("fname", user.fname));
          dataToSend.add(new BasicNameValuePair("lname", user.lname));
          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");
  </code></pre>
  
  <p>When searching for answers, I am getting sent to use <code>openconnection()</code>, but I don't see how that applies to code above.</p>