【发布时间】:2014-11-06 10:22:38
【问题描述】:
我正在尝试使用 azure 移动服务及其身份验证提供程序为 android 应用添加身份验证。我正在使用移动服务 1.1.5 jar 并且我的 android 项目以 API 19 为目标。
方法 login(MobileServiceAuthenticationProvider, JsonObject, UserAuthenticationCallback) 的类型不明确 移动服务客户端
这是我的代码
private void authenticate() { // Login using the Google provider.
ListenableFuture<MobileServiceUser> mLogin = mClient.login(null, null, null);
Futures.addCallback(mLogin, new FutureCallback<MobileServiceUser>() {
@Override
public void onFailure(Throwable exc) {
createAndShowDialog((Exception) exc, "Error");
}
@Override
public void onSuccess(MobileServiceUser user) {
createAndShowDialog(String.format(
"You are now logged in - %1$2s",
user.getUserId()), "Success");
createTable();
}
});
}
【问题讨论】:
标签: android azure azure-mobile-services