Use URLEncoder
to encode your URL params such as student_name[k]
and roll_no[k]
:
final String queryString =
"student_name=" + URLEncoder.encode(student_name[k], "UTF-8")
+ "&roll_no="+ URLEncoder.encode(roll_no[k], "UTF-8");
Use equals()
and not ==
or !=
for comparing String
s:
if(!"".equals(queryString))
2
solved running application it’s showing this error in android