使用API 8.3.0在Android应用程序中从谷歌注销
通过以下方法,我在我的应用程序中从google integration注销使用API 8.3.0在Android应用程序中从谷歌注销,android,Android,通过以下方法,我在我的应用程序中从google integration注销 Auth.GoogleSignInApi.revokeAccess(mGoogleApiClient).setResultCallback( new ResultCallback<Status>() { @Override
Auth.GoogleSignInApi.revokeAccess(mGoogleApiClient).setResultCallback(
new ResultCallback<Status>() {
@Override
public void onResult(Status status) {
AndyConstants.loginorout = false;
Intent intent = new Intent(getActivity(), HomeActivity.class);
startActivity(intent);
}
});
Auth.GoogleSignInApi.revokeAccess(mgoogleapclient.setResultCallback)(
新的ResultCallback(){
@凌驾
公共void onResult(状态){
AndyConstants.loginorout=false;
Intent Intent=新的Intent(getActivity(),HomeActivity.class);
星触觉(意向);
}
});
我使用此方法成功注销,但它将我重定向到注册活动,我的google integration按钮所在的位置。我想重定向到我在上面的方法中编码的HomeActivity,但它不起作用。您是否尝试过注销方法而不是撤销访问权?是的,在撤销之前,我尝试过注销,但同样的问题发生了尝试使用(finish();)并查看它的作用,Roid studio不允许我使用finish();(无法解析方法)您是否尝试过注销方法而不是撤销访问权限--是的,在撤销之前,我尝试过注销,但同样的问题发生了尝试使用(finish();)并查看它的作用,Roid studio不允许我使用finish();(无法解析方法)