Android Match Contact From Contactlist
I have try this code..it is working fine.. public class Test extends Activity implements OnItemClickListener{ List name1 = new ArrayList(); List
Solution 1:
Don't panic, just match both list and take one temp arraylist and when any name match then add in that temp arraylist and then show that list view according to that temp arraylist. :)
Here I give you code and hint:
ArrayList<String> matchname = new ArrayList<String>();
for(int k =0;k<name1;k++)
{
for(int l =0;l<name2.size();l++)
{
String keyname = name1[k];
if((keyname.trim().equals(name2[l].trim())))
{
matchname.add(keyname);
}
}
}
Post a Comment for "Android Match Contact From Contactlist"