Code example for PlusClient

Methods: disconnect, isConnected

0
     * Disconnects the {@link PlusClient} to avoid leaks. 
     */ 
    @Override 
    public void onDestroy() { 
        super.onDestroy(); 
        if (mIsConnecting || mPlusClient.isConnected()) {
            mPlusClient.disconnect();
        } 
    } 
 
    @Override 
    public void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
        outState.putInt(STATE_REQUEST_CODE, mRequestCode);
    } 
 
    @Override 
    public void onResume() { 
        super.onResume(); 
        if (mRequestCode == INVALID_REQUEST_CODE) {
            // No user interaction, hide the progress dialog.