I am new to android development. Now i am working in a app that is sending sms multiple contacts in my mobile.for that i am using AutoCompleteTextView
with reference here
.
But by using this i am able to select one contact at a time.
But i want to select multiple contacts. Can any body suggest me to do that
Asked
Active
Viewed 1,160 times
0

Community
- 1
- 1

user2897471
- 55
- 1
- 8
3 Answers
1
May This Help you:
Buddy Use MultiAutoCompleteTextView
instead of AutoCompleteTextView
For Reference: Click Here

Bhavin Nattar
- 3,189
- 2
- 22
- 30
-
buddy search for examples of `MultiAutoCompleteTextView` in google it will help you.. – Bhavin Nattar Oct 24 '13 at 05:26
0
try multiAutoCompleteTextView. I think it will help you.

Sino
- 886
- 7
- 21
-
try this http://android-er.blogspot.in/2010/07/example-of-multiautocompletetextview.html – Sino Oct 24 '13 at 05:29
0
use check box to select multiple contacts. Store that contacts in array, then on button click use for loop to send sms form first index to last index of the array.
int cntChoice = myList.getCount();
SparseBooleanArray checkedItems = myList.getCheckedItemPositions();
for(int i = 0; i < checkedItemsCount; i++){
int position = checkedItems.keyAt(i);
boolean isChecked = checkedItems.valueAt(i);
if(sparseBooleanArray.get(i) == true){
checked += myList.getItemAtPosition(i).toString() + "\n";
}
selectedNos[i] = checked;
}
use this selectedNos array to send sms.

AnAndroid
- 567
- 1
- 5
- 16