title: Basic Authentication Android API 20
body: <p>I cannot get the Basic Authentication to work on HTTP GET. The getCredentialsProvider does not exist, then I look around and tried HttpBuilder but that do not exist either. I run the Android Sdk update still no luck.
  I spend three hours looking around and tried every one I found but there was always some part that didn't exist.</p>
  
  <pre><code>HttpClient httpclient = new DefaultHttpClient();
  String username = "User";
  String password = "Pass";
  Credentials credentials = new UsernamePasswordCredentials(username , password );
  httpclient.getCredentialsProvider().setCredentials(AuthScope.ANY,credentials);
  </code></pre>
  
  <p>Thanks</p>