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

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -