Code example for DialogFragment

Methods: dismiss, getActivity

0
 
		String uri = items.get(key);
		if (uri == null)
			return; 
 
		dismiss();
 
		DocumentLoadingActivity activity = ((DocumentLoadingActivity) getActivity());
		activity.loadUri(Uri.parse(uri));
	} 
 
	@Override 
	public void onLoaderReset(Loader<Map<String, String>> arg0) {
		items = null;
	} 
}