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 boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present. 
		getMenuInflater().inflate(R.menu.main, menu);