• 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
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: 129
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.
 
@LV426 , i am just getting contacts detail. Tokenization done by android system. If you look at the image that i post it is native android contact image.
 
I don't understand the problem, or how it relates to application development, if there is no code.
Please describe exactly what you are doing, how to reproduce the problem, and any related code.
 
@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.
 
Back
Top Bottom