android - How to retrieve the String from MultiAutoCompleteTextView -


i using multiautocompletetextview , want append selected text in multiautocompletetextview, m trying

public void onitemclick(adapterview<?> arg0, view arg1, int arg2,                 long arg3) {              map<string, string> map = (map<string, string>) arg0                     .getitematposition(arg2);               string name = map.get("name");             string number = map.get("phone");             automulti.settokenizer(new multiautocompletetextview.commatokenizer());               log.d("ad:", automulti.gettext().tostring());             automulti.append(", " + name  );             } 

try code,

multiautocompletetextview myedittext = (multiautocompletetextview)findviewbyid(r.id.mymulti);      string stringedittext = multiautocompletetextview.gettext().tostring(); 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -