How to avoid duplicate contact name (data ) while loading contact info to listview?

前端 未结 7 1558
孤独总比滥情好
孤独总比滥情好 2020-12-09 10:58

I am populating contact list details to list view successfully. My code:

  String order = ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME + \" ASC\";
         


        
7条回答
  •  旧巷少年郎
    2020-12-09 11:52

    I believe this may happen if the contact number is stored in two different ways/formats: for example in your case the number for Akshay may be saved as 982-0123456 and 9820123456

    Did you try displaying the number along with the Name by including the Number as well in the list view?

提交回复
热议问题