开发者

How to register listening for Contact changes on android 2.0?

开发者 https://www.devze.com 2022-12-16 00:23 出处:网络
How to register a content observer to listen for changes in the contact database in android开发者_StackOverflow 2.0? What URI should I use?

How to register a content observer to listen for changes in the contact database in android开发者_StackOverflow 2.0? What URI should I use?

Thank you


ContactsContract.Contacts.CONTENT_URI

For Example:

mContactsObserver = new ContactsObserver(mHandler);
getContentResolver().registerContentObserver(ContactsContract.Contacts.CONTENT_URI, true, mContactsObserver);

Source: http://developer.android.com/resources/articles/contacts.html

0

精彩评论

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