Code example for DialogFragment

Methods: onDetach, getActivity

0
	} 
 
	@Override 
	public void onDetach() 
	{ 
		super.onDetach(); 
 
		Activity activity = getActivity();
		activity.unregisterReceiver( m_updateReceiver );
		m_updateReceiver = null;
	} 
 
	private void updateViews() 
	{ 
		if( m_rocket != null && isAdded() )
		{ 
			m_rocketName.setText( m_rocket.name );
			m_rocketConfiguration.setText( m_rocket.configuration );
 
			if( m_rocketDetail != null )
Connect your IDE to all the code out there  Get Codota for Java