Code example for DialogFragment

Methods: onActivityCreated, getActivity

		mListener = listener;
	public void onActivityCreated(Bundle savedInstanceState) {
		mQueryHandler = new ObservableAsyncQueryHandler(getActivity(), this);
	protected abstract View createContentView(Bundle savedInstanceState, LayoutInflater inflater);
	protected abstract void performTask() throws Exception; 
	protected void onStartTask() { 
	protected void onCancelTask() { 
	protected void onCompleteTask() { 
Connect your IDE to all the code out there  Get Codota for Java