Code example for PlusClient

Methods: getAccountName

0
        } 
    } 
 
    @Override 
    public void onConnected(Bundle connectionHint) {
        String accountName = mPlusClient.getAccountName();
        Toast.makeText(this, accountName + " is connected.", Toast.LENGTH_LONG).show();
    } 
 
    @Override 
    public void onDisconnected() { 
        Log.d(TAG, "disconnected");
    } 
 
    @Override 
    public void onClick(View v) {
 
    } 
}