我想为使用Azure移动服务及其身份验证提供程序的Android应用程序添加身份验证。我正在使用移动服务1.1.5 jar和我的Android项目目标API 19。无法使用谷歌Oauth与Android应用程序中的Azure移动服务
的方法,登录(MobileServiceAuthenticationProvider,的JSONObject, UserAuthenticationCallback)是不明确的类型 MobileServiceClient
这是我的代码
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();
}
});
}