android namevaluepair alternate methods -


this question has answer here:

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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -