将您的应用程序帐户设置为自动同步设置android [英] Put your app account in Auto-Sync settings android
问题描述
我对此很陌生,所以我无法在互联网上找到答案,或者不确定答案是否就是那个。我想要做的是使我的应用程序像whatsapp或facebook一样同步本机联系人应用程序中的所有联系人。我也想链接联系人。任何提示或教程都很好。
I am new on this so i do not find the answer on the internet or i am not sure if the answer is that. What i am trying to do is to make my app sync all the contacts in the native contact app like whatsapp or facebook does. I also wanted to link contacts. Any hint or tutorial would be great.
类似这样的东西:
Something like this:
将我的应用放在那边有什么好处?我对此很陌生。请希望答案不要否定D:。欢迎任何答案。
What are the benefits of putting my app over there? I am very new on this. Please I hope an answer do not vote down D:. Any answer is welcome.
推荐答案
帐户管理器需要多个关键api才能与您的应用一起使用。
Account Manager requires several key api's to work with your app.
仅显示您的应用程序帐户
- Authenticator Activtiy扩展了AbstractAccountAuthenticator
- 与身份验证器绑定的服务活动
- RES / XML文件夹中的xml文件
- Android Manifest中的某些设置。
- Authenticator Activtiy which extends AbstractAccountAuthenticator
- Service Activity which Bind's with Authenticator
- An xml file in RES/XML folder
- Some Settings in Android Manifest.
阅读此
> https://www.finalconcept.com.au/article/view/android-account-manager-by-step
自动同步您的帐户;
- 扩展AbstractThreadedSyncAdapter的SyncAdapter类
- SyncService扩展服务
- 一个xml文件,该文件定义了SyncAdapter的元数据
- Android中的权限清单
- 可选的内容提供程序类
- SyncAdapter Class which extends AbstractThreadedSyncAdapter
- SyncService which extends Service
- an xml file , which defines metadata for SyncAdapter
- Permission in Android Manifest
- Optionally Content Provider Class
Android开发人员正式教程
https://developer.android.com/training/sync- adapters / index.html
另一个完整的详细答案(包括示例):
Android登录-帐户身份验证器与手动身份验证
这篇关于将您的应用程序帐户设置为自动同步设置android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!