HttpPost post = new HttpPost("http://www.tree.com/action.php?fun=login");
List<NameValuePairs> Params= new ArrayList<NameValuePairs>();
Params.add(new BasicNameValuePair("username",username));
Post.setEntity(UrlEncodedFormEntity(Params));
I am unable to understand the concept of using new BasicNameValuePair("username",username)
. Does it relate to the ArrayList
index? What is the advantage of using it?