• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How android tokenize contact name into fields

Hussey

Lurker
Jan 23, 2017
4
1
In my application i required all fields of contact. But device tokenize name differently. Like if i enter Mr or Prof test contact it will tokenize as Mr or Prof as prefix , test as first and contact as last name. But if i enter Mr & Mrs test contact it tokenize it as Mr as prefix , & Mrs as first name , test as middle name and contact as last name. In this case if i use first name in my app this produced some abnormal behavior. I have two questions :

  • Is this android bug or user error?
  • How user select prefix from name , it seems like android have list of names which can be categorize as prefix like Mr , Prof. Can anyone have this list ?
following is image of my device contact.
 

Attachments

  • dd.png
    dd.png
    378.2 KB · Views: 86
I am developing custom sms app where i need to get device contact detail. I am getting contacts from devices but device tokenize contacts differently. If @scary alien , you have time run test case that describes in my question and let me know if you have information regarding this matter. I am failed to get any of this matter from internet.
 
Upvote 0
Ah, well I was asking to confirm that your thread more appropriately belongs in our Application Development area, which is where I moved it for you.

You'll likely want to have a read of this thread:


which encourages you to post your code and issues/errors so that others can get a better handle on how to help you.

Cheers and best of luck!
 
Upvote 0
@LV426 , Thanks for ur reply.
There is no issue in my app , i am fetching contacts from android device. Android divide contact's name into different field like prefix , firstname , middlename , lastname and suffix. To reproduce it go to your contact make contact MR. Test Contact it will divided well into fileds like i mentioned inquestion. But when i enter Mr & Mrs Test Contact it tokenized it wrongly Mr as prefix , & Mrs as first name , Test first and Contact last name. You can see this in image. I request you to run this test case in you device you will see this behavior. Let me know if you able to reproduce it.
 
  • Like
Reactions: sweetndreemy73
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones