Android的联系人同步无需身份验证令牌 [英] android contacts sync without auth token

查看:177
本文介绍了Android的联系人同步无需身份验证令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法来同步与服务器的Andr​​oid通讯录不使用的authToken,只需用户名和密码?如何能做到?

Is there a way to sync android contacts with server without using authToken, just username and password? How can it be done?

我要与用户名和密码,每次我同步的联系人进行验证,在不使用的authToken的。

I want to authenticate with username and password everytime i sync the contacts, without using the authToken at all.

让我们在 SampleSyncAdapter ,我应该怎么改变来实现这一说。

Let's say on the SampleSyncAdapter, what should I change to achieve this.

推荐答案

您可以使用该帐户名称作为用户名和密码保存无论是作为令牌或其他信息。在SampleSyncAdapter,只需更换您向服务器发送的内容。

You can use the account name as the user name, and save the password either as the token as or additional info. In the SampleSyncAdapter, just replace what your sending to the server.

这篇关于Android的联系人同步无需身份验证令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆