Android Wear Access Contacts

2019-08-05 13:48发布

问题:

I have an app that interfaces extensively with the contacts ContentProvider. I am looking to introduce a Wear component to my app that will make use of contact data.

Is Wear able to directly access the contacts through a ContentResolver or does it have to be manually synced from the mobile device?

回答1:

There is no such an API allows you to directly read contacts of your phone. You may have to consider the wearable app as a separate app from you phone side app. You should sync the contacts using the Data Layer Api.