Code example for DialogFragment

Methods: dismiss, getActivity

0
 
		String uri = items.get(key);
		if (uri == null)
			return; 
 
		dismiss();
 
		MainActivity activity = ((MainActivity) getActivity());
		activity.loadUri(Uri.parse(uri));
	} 
 
	@Override 
	public void onLoaderReset(Loader<Map<String, String>> arg0) {
		items = null;
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java