Code example for DialogFragment

Methods: getActivity, onActivityCreated

0
			mMessage = savedInstanceState.getString("message");
	}	 
	 
	@Override 
	public void onActivityCreated(Bundle arg0) {
		super.onActivityCreated(arg0);
		if( getActivity() instanceof IAlarmeUIEvent )
			mEventListener = (IAlarmeUIEvent) getActivity();
	} 
	 
	 
	@Override 
	public void onSaveInstanceState(Bundle bundle) {
		super.onSaveInstanceState(bundle);
		bundle.putString("message", mMessage);
	} 
 
	public Dialog onCreateDialog(Bundle savedInstanceState) {
		 
		final String[] members = getActivity().getResources().getStringArray(R.array.friends);
		final SparseBooleanArray selectedMembers = new SparseBooleanArray();