开发者

Make changes to contacts

I'm making android app that tells you the operator's name of your contact's number.

Is there a way to put a label containing the name of the operator next to ever开发者_运维技巧y number directly in the contacts list?


You will need to create your own sync provider and your own RawContacts table. Fill it up with name, phone number and the data you need (e.g., the operator name). Not an easy. task There's a very nice post with lots of details here:

http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-1/

http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-2/

There's an example in the android Technical Resources pages: http://developer.android.com/resources/samples/SampleSyncAdapter/index.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜