Sending message to multiple contacts of mobile by providing search facility in J2ME
Posted
by learn
on Stack Overflow
See other posts from Stack Overflow
or by learn
Published on 2010-05-07T08:51:22Z
Indexed on
2010/05/07
8:58 UTC
Read the original article
Hit count: 171
I wan to send the message to multiple contacts in the contactlist
for(int j=0;j<vector.size();j++){
listofContacts=new ListofContacts();
listofContacts=(ListofContacts)vector.elementAt(j);
list.setFitPolicy(1);
list.append(listofContacts.contactname + " "+ listofContacts.contactno,null);
System.out.println(listofContacts.contactname + " "+ listofContacts.contactno);
}
here i have taken all the contacts of contact list in vector and the listofcontacts is the class containing the name and number. To show the list of contacts for selection i am using list control with multiple choice.
The code is working fine and message is sent to all the contacts which are selected by the user but as we know there may be 1000 of contacts in phonebook and in these case to select a particular user we have to scroll down the list. Now how to keep the search facility so that we can directly go to the required contact and if it is not possible with the list control which control is to be used so that multiple contacts can be selected and also search facility is available.
© Stack Overflow or respective owner