Http Authentication in android using volley library
问题 How to make Http Authentication for API using Volley library ? I tried the following code ....it throws Runtime Exception & Null pointer exception..Please provide suggestions String url = "Site url"; String host = "hostName"; int port = 80; String userName = "username"; String password = "Password"; DefaultHttpClient client = new DefaultHttpClient(); AuthScope authscope = new AuthScope(host, port); Credentials credentials = new UsernamePasswordCredentials(userName, password); client