In the Peopleactivity interface, the contact's display position is determined by the first character of its display name.
The contacts at the beginning of the number are displayed under the "#" header.
The Chinese and English contacts will appear under "A" to "Z".
Contacts that begin with a symbol do not have a corresponding header, which is displayed at the top, and how can I modify it to show them under the ' # ' sign?
The following method can be displayed under "#" (for symbols in general ASCII encoding)
JB Version:
Contactsprovider2.java (packages\providers\contactsprovider\src\com\android\providers\contacts)
The following statement is in the Getfastscrollingindexextras function:
if (title = = null) {
title = "";
}
Modified to: if (title = = null) {
title = "#";
}
KK Version:
Contactlocaleutils.java (alps\packages\providers\contactsprovider\src\com\android\providers\contacts)
Contactlocaleutilsbase Inner class
Public String getbucketlabel (int bucketindex) {
if (Bucketindex < 0 | | bucketindex >= getbucketcount ()) {
return empty_string; Change here to return number_string;
} else if (Bucketindex = = Mnumberbucketindex) {
return number_string;
} else if (Bucketindex > Mnumberbucketindex) {
--bucketindex;
}
Return Malphabeticindex.getbucketlabel (Bucketindex);
}
The contacts at the beginning of the Android special symbol are merged into the "#"