android namevaluepair alternate methods -
this question has answer here:
- namevaluepair deprecated openconnection 7 answers
in andorid namevaluepair,basicnamevaluepair deprecated. have
list<namevaluepair> pairs = new arraylist<namevaluepair>(1); pairs.add(new basicnamevaluepair("student",string1));
what alternative code?
try using list of pair objects, code below this answer:
list<pair<string, string>> params = new arraylist<>(); params.add(new pair<>("username", username)); params.add(new pair<>("password", password));
Comments
Post a Comment