Multiautocompletetextview Not Working Properly
I am using multiautocomplete textview in my app,the items which I use with mutltiautocompletetextview is from json,now What I want is whenever user selects more than one value I ne
Solution 1:
so you need full catids, so first change catid to array or list.
privateList<String> catid=new ArrayList<String>();
then change your code
String cats[]=acTextView.getText().toString().split(",");
JsonParse jp=new JsonParse();
for(String cat:cats){
List<SuggestGetSet> list =jp.getParseJsonWCF(acTextView.getText().toString());
for(int i = 0;i<list.size();i++){
if(list.get(i).getName().equals(cat))
catid.add(list.get(i).getId().toString());
//params.add(new BasicNameValuePair("parentid",list.get(i).getId()));
}
}
Post a Comment for "Multiautocompletetextview Not Working Properly"