Mew
Mew

Reputation: 1152

Merging Contacts in List view

What i would like to do is following: I have a custom list view which displays all the device contacts along with duplicates names.

Now I would like to merge the contacts with same names. I can have different numbers with same name. All this should come under single name.

Upvotes: 0

Views: 172

Answers (1)

Nir Duan
Nir Duan

Reputation: 6392

HashMap<String,List<String>> ContactList;

The first string in the HashMap is a Key - means duplicate will be automtically earsed.
The second List is expandable collection and also the value of the hash map - means you can have List of strings that can be duplicated across the HashMap.

Upvotes: 1

Related Questions