Code example for PlusClient

Methods: disconnect, isConnected, isConnecting

0
	 * Disconnects the {@link PlusClient} to avoid leaks. 
	 */ 
	@Override 
	public void onDestroy() { 
		super.onDestroy(); 
		if (plusClient.isConnecting() || plusClient.isConnected()) {
			plusClient.disconnect();
		} 
	} 
	 
	@Override 
	public void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
		outState.putInt(STATE_REQUEST_CODE, requestCode);
	} 
	 
	@Override 
	public void onResume() { 
		super.onResume(); 
		if (requestCode == INVALID_REQUEST_CODE) {
			// No user interaction, hide the progress dialog.