Hi, guys!

I'm started to use Android device just recently (Incredible S), so
maybe I want something unusual from it.
On Windows smartphones I could choose in each contact how I want to
see it in the list or on dial screen (I think it uses some analog to
DISPLAY_NAME field).
I very actively use this format for all contacts:
"Organization(Family, Given Middle)" (ex.: "Microsoft(Gates, Bill
W.)"). It's very convenient for me because I have hundreds of contacts
from different orgs, and most of them have only "Office" in their
Family name because I don't want to know real people names who answer
on the office phone. So most of my contacts looks like
"Google(Office)". And Windows give me possibility to generate such
display names almost automatically and I can use them everywhere: in
dialler app, in calls list etc.

Since there is no such functionality in Android, I decided to write
small snippet which will do such conversion after I import my contacts
to Android (now after import I have too many "Office" contacts to
choose from :-)). After going up and down the DevGuide for some time,
I wrote code using ContactsContract which generates dispnames for
choosen contact. Everything works just OK until I try to update
dispname in ContactsContract.Data row. Problem is that this Android
beastie tries to do it's best and automagically parses value which I
write in dispname field, so now I have good dispname value, but broken
org and structured names fields (ex.: writing "Google corp.(Office)"
in dispname will give "Google" in Family name and "corp.(Office)" in
Given name).

Could somebody show me the right direction to solve this problem (to
write dispname without this smart logic or tackle somehow logic of
default dispname generation)?

I know that I can change this behaviour somewhere in contacts provider
sources and build my own version of Android but now it's not an option
for me, because Incredible S could be rooted only with hardware
programmer and I don't want to maintain this through official updates
from HTC. I don;t like to work with SQLite database of contacts
directly (consider it only as last chance possibility).

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to