Code example for PlusClient

Methods: connect, isConnected

0
	} 
 
	@Override 
	protected void onStart() { 
		super.onStart(); 
		if (!mPlusClient.isConnected())
			mPlusClient.connect();
	} 
 
	@Override 
	protected void onStop() { 
		super.onStop(); 
		mPlusClient.disconnect();
	} 
 
	@Override 
	public void onConnectionFailed(ConnectionResult result) {
		if (result.hasResolution()) {
			try { 
				result.startResolutionForResult(this, REQUEST_CODE_RESOLVE_ERR);
			} catch (SendIntentException e) {