Code example for PlusClient

Methods: getAccountName

0
    } 
 
    @Override 
    public void onConnected() { 
        Log.d(LOG_TAG, "onConnected()");
        final String accountName = mPlusClient.getAccountName();
    } 
 
    @Override 
    public void onDisconnected() { 
        Log.d(LOG_TAG, "onDisconnected()");
    } 
 
    @Override 
    public void onConnectionFailed(ConnectionResult connectionResult) {
        Log.d(LOG_TAG, "onConnectionFailed()");
        Log.d(LOG_TAG, "Connection failed: "+ connectionResult.getErrorCode());
 
        if (connectionResult.hasResolution()) {
            try { 
Connect your IDE to all the code out there  Get Codota for Java