我想爲使用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();
}
});
}