Code example for PlusClient

Methods: connect, isConnected, isConnecting

0
    private void handleResult(int resultCode) {
        if (resultCode == RESULT_OK) {
            // onActivityResult is called after onStart (but onStart is not 
            // guaranteed to be called while signing in), so we should make 
            // sure we're not already connecting before we call connect again. 
            if (!mPlusClient.isConnecting() && !mPlusClient.isConnected()) {
                mPlusClient.connect();
            } 
        } else { 
            Log.e(TAG, "Unable to sign the user in.");
            finish();
        } 
    } 
 
    @Override 
    public void onConnected(Bundle connectionHint) {
        mPlusClient.loadMoments(this);
        mMomentListView.setAdapter(mMomentListAdapter);
    } 
 
    @Override