Android Wear Access Contacts

荒凉一梦 提交于 2019-12-11 12:28:53

问题


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.



来源:https://stackoverflow.com/questions/31907354/android-wear-access-contacts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!