且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从Google+的帐户注销?

更新时间:2023-12-04 16:17:31

如果您使用的是登入Google+ (你应该 - 工作流程要好得多,无论是对开发者和用户),那么你可以通过下面的的导的例子的:

If you are using Google+ sign in (and you should - the work flow is much better, both for developers and users), then you can sign out the user by following the guide's example:

@Override
public void onClick(View view) {
    if (view.getId() == R.id.sign_out_button) {
        if (mPlusClient.isConnected()) {
            mPlusClient.clearDefaultAccount();
            mPlusClient.disconnect();
            mPlusClient.connect();
        }
    }
}