Code example for PlusClient

Methods: getAccountName

0
 
	} 
 
	@Override 
	public void onConnected(Bundle connectionHint) {
		String accountName = mPlusClient.getAccountName();
		// 
		mPlusClient.loadPeople(LoginGLActivity.this, Person.Collection.VISIBLE);
 
		Toast.makeText(this, accountName + " is connected. ", Toast.LENGTH_SHORT).show();
	} 
 
	@Override 
	public void onDisconnected() { 
		Log.d("", "disconnected");
	} 
 
	@Override 
	public void onPeopleLoaded(ConnectionResult status, PersonBuffer personBuffer, String nextPageToken) {
		Log.i("", "persons loaded result = " + status.toString() + ", personsCount = " + personBuffer.getCount()
				+ ", token = " + nextPageToken);