The number starting with the contact name is placed in "#" by default. If you want to display the contact name at the bottom of Thailand and create a new "#" group, modify as follows:
The contact name is displayed in "# Thai group, including the contact name starting with" 0 ~ 9. modify \ Ufff to \ u0039.
For JB
1. In contactsdatabasehelper. Java (packages \ providers \ contactsprovider \ SRC \ com \ Android \ providers \ contacts)
Function updaterawcontactdisplayname,
Before:
Bindstring (mrawcontactdisplaynameupdate, 6, sortkeyprimary );
Bindstring (mrawcontactdisplaynameupdate, 7, sortkeyalternative)
Add:
Char A = sortkeyprimary. charat (0 );
If (A> = '\ u0e00' & A <=' \ u0e7f '){
Sortkeyprimary = '\Uffff'+ Sortkeyprimary;
}
A = sortkeyalternative. charat (0 );
If (A> = '\ u0e00' & A <=' \ u0e7f '){
Sortkeyalternative = '\Uffff'+ Sortkeyalternative;
}
2. In phonebookindex. cpp (external \ SQLite \ Android)
Function getphonebookindex,
After
Add:
Char A = sortkeyprimary. charat (0 );
If (A> = '\ u0e00' & A <=' \ u0e7f '){
Sortkeyprimary = '\Uffff'+ Sortkeyprimary;
}
A = sortkeyalternative. charat (0 );
If (A> = '\ u0e00' & A <=' \ u0e7f '){
Sortkeyalternative = '\Uffff'+ Sortkeyalternative;
}
2. In phonebookindex. cpp (external \ SQLite \ Android)
Function getphonebookindex,
After:
Uchar c = out [0]
Add:
If (C = 0 xFFFF ){
Out [0] = '#';
Return 1;
}
Compile command
Mm external/SQLite/Android, mm external/SQLite/Dist, MM packages/providers/contactsprovider
Copy to mobile phone: libsqlite. So to system/lib and contactsprovider.apk to system/APP, restart and add Contacts.
Kk
The KK version, as Google, supports multi-language, contacts in Thai alphabetic order in Thailand.
:
Uchar c = out [0]
Add:
If (C = 0 xFFFF ){
Out [0] = '#';
Return 1;
}
Compile command
Mm external/SQLite/Android, mm external/SQLite/Dist, MM packages/providers/contactsprovider
Copy to mobile phone: libsqlite. So to system/lib and contactsprovider.apk to system/APP, restart and add Contacts.
In Thailand, how does one classify contact names in the group contact list?