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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -